Download the PHP package dkrasov/feeds without Composer
On this page you can find all versions of the php package dkrasov/feeds. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dkrasov/feeds
More information about dkrasov/feeds
Files in dkrasov/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
dkrasov/feeds
package in your project's composer.json
.
Configuration
If you're using Laravel 5.5 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="Krasov\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:
All versions of feeds with dependencies
illuminate/support Version 6.0.*
simplepie/simplepie Version 1.5.*
ext-curl Version *