PHPackages                             peeto/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. peeto/feeds

ActiveLibrary

peeto/feeds
===========

Laravel 5 Service Provider for the SimplePie library

v1.1.4.2beta(8y ago)097MITPHPPHP &gt;=5.4.0

Since Feb 17Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (14)Used By (0)

Laravel 5 Feeds
===============

[](#laravel-5-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](http://www.laravel.com/) service provider for including the [SimplePie](http://www.simplepie.org) library.

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

[](#installation)

The Laravel 5 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": "1.1.*"
    }
}
```

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

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

```
    '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, Facades must either be prefixed with a backslash, or brought into scope with a `use [facadeName]` declaration.

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

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% 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 ~90 days

Total

13

Last Release

3013d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f9631392c11092413edf2d7261a2cd0f8444744f28cbe7c3c745743eb5ffd15?d=identicon)[peeto](/maintainers/peeto)

---

Top Contributors

[![willvincent](https://avatars.githubusercontent.com/u/689891?v=4)](https://github.com/willvincent "willvincent (25 commits)")[![ammezie](https://avatars.githubusercontent.com/u/6279134?v=4)](https://github.com/ammezie "ammezie (7 commits)")[![ecodrutz](https://avatars.githubusercontent.com/u/24397899?v=4)](https://github.com/ecodrutz "ecodrutz (3 commits)")[![daniesy](https://avatars.githubusercontent.com/u/3399101?v=4)](https://github.com/daniesy "daniesy (2 commits)")[![christianesperar](https://avatars.githubusercontent.com/u/1621344?v=4)](https://github.com/christianesperar "christianesperar (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)")[![uitlaber](https://avatars.githubusercontent.com/u/18505561?v=4)](https://github.com/uitlaber "uitlaber (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)")[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (1 commits)")[![barisbora](https://avatars.githubusercontent.com/u/10472206?v=4)](https://github.com/barisbora "barisbora (1 commits)")[![blueclock](https://avatars.githubusercontent.com/u/586174?v=4)](https://github.com/blueclock "blueclock (1 commits)")

### Embed Badge

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

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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