Download the PHP package willvincent/feeds without Composer
On this page you can find all versions of the php package willvincent/feeds. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download willvincent/feeds
More information about willvincent/feeds
Files in willvincent/feeds
Package feeds
Short Description Laravel 5 Service Provider for the SimplePie library
License MIT
Informations about the package feeds
Laravel Feeds
A simple Laravel 5/6/7/8/9/10 service provider for including the SimplePie library.
Installation
The Laravel 5/6/7/8/9/10 Feeds Service Provider can be installed via Composer by requiring the
willvincent/feeds
package in your project's composer.json
.
Configuration
If you're using Laravel 5.5 or newer you may skip the next step.
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 and newer, 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:
All versions of feeds with dependencies
illuminate/support Version ~5.0 || ^6.0 || ^7.0 || ^8.0|^9.0|^10.0 || ^11.0
simplepie/simplepie Version ^1.5
ext-curl Version *