Download the PHP package ahmedfawzy/feeds without Composer
On this page you can find all versions of the php package ahmedfawzy/feeds. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahmedfawzy/feeds
More information about ahmedfawzy/feeds
Files in ahmedfawzy/feeds
Package feeds
Short Description Laravel 5 Service Provider for the SimplePie library
License MIT
Informations about the package feeds
Laravel 5 Feeds
A simple Laravel 5 service provider for including the SimplePie library.
Installation
The Laravel 5 Feeds Service Provider can be installed via Composer by requiring the
willvincent/feeds
package in your project's composer.json
.
Configuration
To use the Feeds Service Provider, you must register the provider when bootstrapping your Laravel application.
Find the providers
key in your config/app.php
and register the Service Provider.
Find the aliases
key in your config/app.php
and register the Facade.
Usage
Run php artisan vendor:publish --provider="willvincent\Feeds\FeedsServiceProvider"
to publish the default config file, edit caching setting withing the resulting config/feeds.php
file as desired.
See SimplePie Documentation for full API usage documentation.
The make() accepts 3 paramaters, the first parameter is an array of feed URLs, the second parameter is the max number of items to be returned per feed, and while the third parameter is a boolean which you can set to force to read unless content type not a valid RSS.
Note: In Laravel 5, Facades must either be prefixed with a backslash, or brought into scope with a use [facadeName]
declaration.
Example controller method, and it's related view:
Controller:
or Force to read unless content type not a valid RSS
Multifeeds example controller method, and it's related view:
Controller:
or Force to read unless content type not a valid RSS
View: