2017 © Pedro Peláez
 

library laravel-feeder

Laravel 5 Package to extract atom and rss feeds from any website

image

unicodeveloper/laravel-feeder

Laravel 5 Package to extract atom and rss feeds from any website

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

laravel-feeder

Latest Stable Version License Build Status Quality Score Total Downloads, (*1)

Laravel 5 Package to extract atom and rss feeds from any website in a very good readable format, (*2)

Installation

PHP 5.4+ or HHVM 3.3+, and Composer are required., (*3)

To get the latest version of Laravel Feeder, simply add the following line to the require block of your composer.json file., (*4)

"unicodeveloper/laravel-feeder": "1.1.*"

You'll then need to run composer install or composer update to download it and have the autoloader updated., (*5)

Once Laravel Feeder is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key., (*6)

  • Unicodeveloper\LaravelFeeder\LaravelFeederServiceProvider::class

You can also use a Facade, (*7)

'aliases' => [
    ...
    'Feeder' => Unicodeveloper\LaravelFeeder\Facades\LaravelFeederFacade::class,
    ...
]

Configuration

To get started, you'll need to publish all vendor assets:, (*8)

$ php artisan vendor:publish --provider="Unicodeveloper\LaravelFeeder\LaravelFeederServiceProvider"

Usage

Download RSS feed from URL:, (*9)

  $rss = Feeder::loadRss($url);

The returned properties are SimpleXMLElement objects. Extracting the information from the channel is easy:, (*10)

  echo 'Title: ', $rss->title;
  echo 'Description: ', $rss->description;
  echo 'Link: ', $rss->link;

  foreach ($rss->item as $item) {
    echo 'Title: ', $item->title;
    echo 'Link: ', $item->link;
    echo 'Timestamp: ', $item->timestamp;
    echo 'Description ', $item->description;
    echo 'HTML encoded content: ', $item->{'content:encoded'};
  }

Download Atom feed from URL:, (*11)

  $atom = Feeder::loadAtom($url);

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*12)

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!, (*13)

Don't forget to follow me on twitter!, (*14)

Thanks! Prosper Otemuyiwa., (*15)

License

The MIT License (MIT). Please see License File for more information., (*16)

Security

If you discover any security related issues, please email prosperotemuyiwa@gmail.com instead of using the issue tracker., (*17)

The Versions

21/01 2016

dev-master

9999999-dev

Laravel 5 Package to extract atom and rss feeds from any website

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel atom rss laravel 5 github feeds open source evangelist

21/01 2016

1.0.1

1.0.1.0

Laravel 5 Package to extract atom and rss feeds from any website

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel atom rss laravel 5 github feeds open source evangelist

04/11 2015

1.0.0

1.0.0.0

Laravel 5 Package to extract atom and rss feeds from any website

  Sources   Download

MIT

The Requires

 

laravel atom rss laravel 5 github feeds open source evangelist