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

ActiveLibrary

dkrasov/feeds
=============

Laravel 5 Service Provider for the SimplePie library

v1.2.2(6y ago)018MITPHPPHP ^7.2

Since Feb 17Pushed 6y agoCompare

[ Source](https://github.com/dkrasov/feeds)[ Packagist](https://packagist.org/packages/dkrasov/feeds)[ RSS](/packages/dkrasov-feeds/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (2)Versions (18)Used By (0)

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

[](#laravel-5-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 `dkrasov/feeds` package in your project's `composer.json`.

```
{
    "require": {
        "dkrasov/feeds": "1.2.*"
    }
}
```

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' => [
        // ...
        Krasov\Feeds\FeedsServiceProvider::class,
    ],
```

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

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

Usage
-----

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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~104 days

Recently: every ~77 days

Total

17

Last Release

2440d ago

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

v1.2.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/56be7ed9f07610ea8c324668202bd8cdc39fa76519131dbd7a8ecb9fb08fe5ce?d=identicon)[dmitriymarley](/maintainers/dmitriymarley)

---

Top Contributors

[![willvincent](https://avatars.githubusercontent.com/u/689891?v=4)](https://github.com/willvincent "willvincent (31 commits)")[![koenhoeijmakers](https://avatars.githubusercontent.com/u/2232776?v=4)](https://github.com/koenhoeijmakers "koenhoeijmakers (7 commits)")[![ammezie](https://avatars.githubusercontent.com/u/6279134?v=4)](https://github.com/ammezie "ammezie (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)")[![denishostelpass](https://avatars.githubusercontent.com/u/54020970?v=4)](https://github.com/denishostelpass "denishostelpass (3 commits)")[![daniesy](https://avatars.githubusercontent.com/u/3399101?v=4)](https://github.com/daniesy "daniesy (2 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)")[![christianesperar](https://avatars.githubusercontent.com/u/1621344?v=4)](https://github.com/christianesperar "christianesperar (1 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)")

### Embed Badge

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

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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