PHPackages                             graze/feed - 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. graze/feed

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

graze/feed
==========

Supply ordered feeds of articles.

0.0.2(11y ago)117.8k1MITPHPPHP &gt;=5.4

Since Jan 27Pushed 8y ago22 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

graze/feed
==========

[](#grazefeed)

[![Latest Stable Version](https://camo.githubusercontent.com/7146b6418161e25ebc9ad164f5373e1fe9ead84871508d5b0171e1aef360e450/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772617a652f666565642e7376673f7374796c653d666c6174)](https://packagist.org/packages/graze/feed)[![Build Status](https://camo.githubusercontent.com/50a9bbdf60ec99ddc9fa0189b908612838e9d98188a3ec85d7ac87d64bdb4df6/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6772617a652f666565642f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/graze/feed)[![Minimum PHP Version](https://camo.githubusercontent.com/2b45bc7baa80dd46370fe19fb79c52ed215f1c0f4df6e93c45fe814108112399/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e352e352d3838393242462e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/2b45bc7baa80dd46370fe19fb79c52ed215f1c0f4df6e93c45fe814108112399/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e352e352d3838393242462e7376673f7374796c653d666c6174)

This is a very simple library designed to facilitate the implementation of simple, lightweight article feeds, where articles can be anything you like.

It can be installed in whichever way you prefer, but we recommend [Composer](https://packagist.org/packages/graze/feed).

```
$ composer require graze/feed
```

The interface
-------------

[](#the-interface)

The core of the library is `Graze\Feed\FeedInterface` which looks like this:

```
interface FeedInterface
{
    /**
     * @param integer $number
     * @return boolean
     */
    public function supports($number);

    /**
     * @param integer $number
     * @return array
     */
    public function supply($number);
}
```

The idea being that any feed which you create can be queried to see if it supports a given number of articles (`supports($number)`) and, if so, can supply those articles (`supply($number)`).

The abstract class
------------------

[](#the-abstract-class)

The `Graze\Feed\AbstractFeed` class is designed to let you implement a single protected method (`getArticles`) and then handles some boilerplate around 'supporting' and 'supplying' these articles. N.B. this class will throw a `LogicException` if you request more articles than are supported by its `supports` method - always check if the feed 'supports' a given number of articles before telling it to give you them.

Some batteries included
-----------------------

[](#some-batteries-included)

There's also an implementation of a basic article feed, and a random article feed, as well as a stack feed, that takes an array of `Graze\Feed\FeedInterface` as the only argument to its constructor and lets you create a meta-feed that will defer to each of the provided feeds in turn until it finds a supported one.

Contributing
------------

[](#contributing)

Contributions are accepted via Pull Request, but passing unit tests must be included before it will be considered for merge.

```
$ composer install
$ vendor/bin/phpunit
```

### License

[](#license)

The content of this library is released under the **MIT License** by **Nature Delivered Ltd.**.

You can find a copy of this license at  or in [`LICENSE`](https://github.com/graze/feed/blob/master/LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

4129d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/637788?v=4)[graze.com](/maintainers/graze)[@graze](https://github.com/graze)

---

Top Contributors

[![RokasDevelopment](https://avatars.githubusercontent.com/u/13278000?v=4)](https://github.com/RokasDevelopment "RokasDevelopment (6 commits)")[![silawrenc](https://avatars.githubusercontent.com/u/3692872?v=4)](https://github.com/silawrenc "silawrenc (2 commits)")

---

Tags

feedfeeds

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/graze-feed/health.svg)

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

###  Alternatives

[suin/php-rss-writer

Yet another simple RSS writer library for PHP 5.4 or later.

2651.4M20](/packages/suin-php-rss-writer)[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)[pubsubhubbub/subscriber

pubsubhubbub implementation of subscriber.

32100.2k](/packages/pubsubhubbub-subscriber)[fkr/simplepie-bundle

Integrates SimplePie into Symfony

11137.5k](/packages/fkr-simplepie-bundle)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[codefog/contao-instagram

Instagram bundle for Contao Open Source CMS

167.5k](/packages/codefog-contao-instagram)

PHPackages © 2026

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