PHPackages                             willvincent/feeds - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. willvincent/feeds

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

willvincent/feeds
=================

Laravel Service Provider for the SimplePie library

v2.7.0(1y ago)3131.5M↓19.1%74[4 issues](https://github.com/willvincent/feeds/issues)[1 PRs](https://github.com/willvincent/feeds/pulls)2MITPHPPHP &gt;=5.4.0 || ^7.2 || ^8.0

Since Feb 17Pushed 1y ago16 watchersCompare

[ Source](https://github.com/willvincent/feeds)[ Packagist](https://packagist.org/packages/willvincent/feeds)[ RSS](/packages/willvincent-feeds/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (23)Used By (2)

Laravel Feeds
=============

[](#laravel-feeds)

[![Latest Stable Version](https://camo.githubusercontent.com/d91fc65043fbc3754de12fd68edbf98e935554a291c779197d1b6ea9a61f11d9/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c76696e63656e742f66656564732f762f737461626c652e737667)](https://packagist.org/packages/willvincent/feeds)[![SensioLabsInsight](https://camo.githubusercontent.com/28b5f6bceb6f1a063b0adcaa9886c643a28d88b4351d170c89db991e8eea2844/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f39303938323038642d616264312d343465612d616634372d6130633432613031636237352e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/9098208d-abd1-44ea-af47-a0c42a01cb75)[![License](https://camo.githubusercontent.com/54f61ad936d1d2bb26188cc944e1922a109343a223de89a2bb25704f0f8b9b06/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c76696e63656e742f66656564732f6c6963656e73652e737667)](https://packagist.org/packages/willvincent/feeds)

[![Total Downloads](https://camo.githubusercontent.com/640ddecee0c1b8514df0f6751f3183dcdd54e09dd6d41c378196e21d3828cdd2/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c76696e63656e742f66656564732f646f776e6c6f6164732e737667)](https://packagist.org/packages/willvincent/feeds) [![Monthly Downloads](https://camo.githubusercontent.com/097b953b73cd2bd6de74f5e4a44d9dc40c5e942ce890e050247a735180dff439/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c76696e63656e742f66656564732f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/willvincent/feeds) [![Daily Downloads](https://camo.githubusercontent.com/52af9f7a644a6dd82991c3b72d7f797531d3602552f183ede2104c986b39a338/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c76696e63656e742f66656564732f642f6461696c792e706e67)](https://packagist.org/packages/willvincent/feeds)

A simple [Laravel 5/6/7/8/9/10](http://www.laravel.com/) service provider for including the [SimplePie](http://www.simplepie.org) library.

Installation
------------

[](#installation)

The Laravel 5/6/7/8/9/10 Feeds Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `willvincent/feeds` package in your project's `composer.json`.

```
{
    "require": {
        "willvincent/feeds": "2.3.*"
    }
}
```

Configuration
-------------

[](#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.

```
    'providers' => [
        // ...
        willvincent\Feeds\FeedsServiceProvider::class,
    ],
```

Find the `aliases` key in your `config/app.php` and register the Facade.

```
    'aliases' => [
        // ...
        'Feeds'    => willvincent\Feeds\Facades\FeedsFacade::class,
    ],
```

Usage
-----

[](#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](http://simplepie.org/wiki/) 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.

```
$feed = \Feeds::make('http://feed/url/goes/here');
```

###### Note: In Laravel 5 and newer, Facades must either be prefixed with a backslash, or brought into scope with a `use [facadeName]` declaration.

[](#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:

[](#example-controller-method-and-its-related-view)

Controller:

```
  public function demo() {
    $feed = \Feeds::make('http://blog.case.edu/news/feed.atom');
    $data = array(
      'title'     => $feed->get_title(),
      'permalink' => $feed->get_permalink(),
      'items'     => $feed->get_items(),
    );

    return View::make('feed', $data);
  }
```

or Force to read unless content type not a valid RSS

```
  public function demo() {
    $feed = \Feeds::make('http://blog.case.edu/news/feed.atom', true); // if RSS Feed has invalid mime types, force to read
    $data = array(
      'title'     => $feed->get_title(),
      'permalink' => $feed->get_permalink(),
      'items'     => $feed->get_items(),
    );

    return View::make('feed', $data);
  }
```

### Multifeeds example controller method, and it's related view:

[](#multifeeds-example-controller-method-and-its-related-view)

Controller:

```
  public function demo() {
    $feed = \Feeds::make([
        'http://blog.case.edu/news/feed.atom',
        'http://tutorialslodge.com/feed'
    ], 5);
    $data = array(
      'title'     => $feed->get_title(),
      'permalink' => $feed->get_permalink(),
      'items'     => $feed->get_items(),
    );

    return View::make('feed', $data);
  }
```

or Force to read unless content type not a valid RSS

```
  public function demo() {
        $feed = \Feeds::make(['http://blog.case.edu/news/feed.atom',
        'http://tutorialslodge.com/feed'
    ], 5, true); // if RSS Feed has invalid mime types, force to read
    $data = array(
      'title'     => $feed->get_title(),
      'permalink' => $feed->get_permalink(),
      'items'     => $feed->get_items(),
    );

    return View::make('feed', $data);
  }
```

View:

```
@extends('app')

@section('content')

    {{ $title }}

  @foreach ($items as $item)

      {{ $item->get_title() }}
      {{ $item->get_description() }}
      Posted on {{ $item->get_date('j F Y | g:i a') }}

  @endforeach
@endsection
```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance42

Moderate activity, may be stable

Popularity61

Solid adoption and visibility

Community34

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 51.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Recently: every ~266 days

Total

22

Last Release

469d ago

Major Versions

v1.1.7 → 2.0.02019-09-23

PHP version history (3 changes)1.0.1PHP &gt;=5.4.0

2.0.0PHP &gt;=5.4.0 || ^7.2

v2.4.0PHP &gt;=5.4.0 || ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c6239b14bdb77aba00cd0bc65f561ad8dd694ec4a18508c69eff119352d54fa?d=identicon)[willvincent](/maintainers/willvincent)

---

Top Contributors

[![willvincent](https://avatars.githubusercontent.com/u/689891?v=4)](https://github.com/willvincent "willvincent (46 commits)")[![ammezie](https://avatars.githubusercontent.com/u/6279134?v=4)](https://github.com/ammezie "ammezie (7 commits)")[![koenhoeijmakers](https://avatars.githubusercontent.com/u/2232776?v=4)](https://github.com/koenhoeijmakers "koenhoeijmakers (7 commits)")[![xvlady](https://avatars.githubusercontent.com/u/3993706?v=4)](https://github.com/xvlady "xvlady (4 commits)")[![ecodrutz](https://avatars.githubusercontent.com/u/24397899?v=4)](https://github.com/ecodrutz "ecodrutz (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![daniesy](https://avatars.githubusercontent.com/u/3399101?v=4)](https://github.com/daniesy "daniesy (2 commits)")[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (2 commits)")[![gavro](https://avatars.githubusercontent.com/u/467366?v=4)](https://github.com/gavro "gavro (1 commits)")[![haegemon](https://avatars.githubusercontent.com/u/717337?v=4)](https://github.com/haegemon "haegemon (1 commits)")[![jonasva](https://avatars.githubusercontent.com/u/8156732?v=4)](https://github.com/jonasva "jonasva (1 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (1 commits)")[![pschaub](https://avatars.githubusercontent.com/u/11846736?v=4)](https://github.com/pschaub "pschaub (1 commits)")[![uitlaber](https://avatars.githubusercontent.com/u/18505561?v=4)](https://github.com/uitlaber "uitlaber (1 commits)")[![wensonsmith](https://avatars.githubusercontent.com/u/2544185?v=4)](https://github.com/wensonsmith "wensonsmith (1 commits)")[![AhmedFawzy](https://avatars.githubusercontent.com/u/171846?v=4)](https://github.com/AhmedFawzy "AhmedFawzy (1 commits)")[![yamenarahman](https://avatars.githubusercontent.com/u/24607365?v=4)](https://github.com/yamenarahman "yamenarahman (1 commits)")[![arazprisync](https://avatars.githubusercontent.com/u/75847327?v=4)](https://github.com/arazprisync "arazprisync (1 commits)")[![Art4](https://avatars.githubusercontent.com/u/2162994?v=4)](https://github.com/Art4 "Art4 (1 commits)")[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (1 commits)")

### Embed Badge

![Health badge](/badges/willvincent-feeds/health.svg)

```
[![Health](https://phpackages.com/badges/willvincent-feeds/health.svg)](https://phpackages.com/packages/willvincent-feeds)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
