PHPackages                             dansup/rss-php - 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. [API Development](/categories/api)
4. /
5. dansup/rss-php

AbandonedArchivedLibrary[API Development](/categories/api)

dansup/rss-php
==============

RSS &amp; Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed

1.3.0(8y ago)024BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Aug 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dansup/rss-php)[ Packagist](https://packagist.org/packages/dansup/rss-php)[ Docs](http://github.com/dansup/rss-php)[ RSS](/packages/dansup-rss-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

RSS &amp; Atom Feeds for PHP
============================

[](#rss--atom-feeds-for-php)

[![Downloads this Month](https://camo.githubusercontent.com/e0d6c56fa30e034ff11d3596b6d54006761092c2a7b193c10239b5598631b5fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6772756e6a6f6c2f7273732d7068702e737667)](https://packagist.org/packages/grunjol/rss-php)[![Latest Stable Version](https://camo.githubusercontent.com/dea190477ad58d2f1cdd469c003e8dbfbd24781a37148ceaa04ae5cda4613924/68747470733a2f2f706f7365722e707567782e6f72672f6772756e6a6f6c2f7273732d7068702f762f737461626c65)](https://github.com/grunjol/rss-php/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/grunjol/rss-php/blob/master/license.md)

RSS &amp; Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feeds. This project is a forked of David Grudl's rs-php

It requires PHP 5.5 and Guzzle 6.1 and is licensed under the New BSD License. You can obtain the latest version from our [GitHub repository](https://github.com/dansup/rss-php/releases) or install it via Composer:

```
php composer.phar require dansup/rss-php

```

Usage
-----

[](#usage)

Download RSS feed from URL:

```
$rss = Feed::loadRss($url);
```

The returned properties are SimpleXMLElement objects. Extracting the information from the channel is easy:

```
echo 'Title: ', $rss->title;
echo 'Description: ', $rss->description;
echo 'Link: ', $rss->link;

foreach ($rss->item as $item) {
	echo 'Title: ', $item->title;
	echo 'Link: ', $item->link;
	echo 'Timestamp: ', $item->timestamp;
	echo 'Description ', $item->description;
	echo 'HTML encoded content: ', $item->{'content:encoded'};
}
```

Download Atom feed from URL:

```
$atom = Feed::loadAtom($url);
```

You can set your own Guzzle instance to the static client property

```
Feed::$client = new GuzzleHttp\Client(['headers' => ['User-Agent' => 'FeedPHP/1.0']]);
```

and it will be reused.

You can pass Guzzle request options (including auth user/password) on each call

```
$atom = Feed::loadAtom($url, ['auth' => ['peter', 'secret']);
```

You can also enable caching using

```
//  Simple volatile memory cache example check docs for more options
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use Kevinrob\GuzzleCache\CacheMiddleware;

// Create default HandlerStack
$stack = HandlerStack::create();

// Add this middleware to the top with `push`
$stack->push(new CacheMiddleware(), 'cache');

// Initialize the client with the handler option
Feed::$client = new Client(['handler' => $stack]);
```

---

(c) David Grudl, 2008 () (c) grunjol, 2017 () (c) dansup, 2017 ()

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60.6% 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 ~460 days

Total

5

Last Release

3162d ago

PHP version history (3 changes)v1.2PHP &gt;=5.2.2

1.2.9PHP &gt;=5.6

1.3.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6f279a69b741c13c678663a9780d178bd9432c63b53b155e8e751dc560ddcca?d=identicon)[dansup](/maintainers/dansup)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (20 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (5 commits)")[![grunjol](https://avatars.githubusercontent.com/u/6145761?v=4)](https://github.com/grunjol "grunjol (3 commits)")[![redemption](https://avatars.githubusercontent.com/u/517273?v=4)](https://github.com/redemption "redemption (1 commits)")[![alex-dna](https://avatars.githubusercontent.com/u/6982515?v=4)](https://github.com/alex-dna "alex-dna (1 commits)")[![sschocke](https://avatars.githubusercontent.com/u/2003744?v=4)](https://github.com/sschocke "sschocke (1 commits)")[![dansup](https://avatars.githubusercontent.com/u/877217?v=4)](https://github.com/dansup "dansup (1 commits)")[![flenczewski](https://avatars.githubusercontent.com/u/3543493?v=4)](https://github.com/flenczewski "flenczewski (1 commits)")

---

Tags

phprssrss-readeratomfeedrss

### Embed Badge

![Health badge](/badges/dansup-rss-php/health.svg)

```
[![Health](https://phpackages.com/badges/dansup-rss-php/health.svg)](https://phpackages.com/packages/dansup-rss-php)
```

###  Alternatives

[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16749.2M47](/packages/laminas-laminas-feed)[mibe/feedwriter

Generate feeds in either RSS 1.0, RSS 2.0 or ATOM formats

1951.1M5](/packages/mibe-feedwriter)[debril/rss-atom-bundle

RSS / Atom and JSONFeed support for Symfony

1381.3M2](/packages/debril-rss-atom-bundle)[eko/feedbundle

A Symfony bundle to build RSS feeds from entities

142574.6k3](/packages/eko-feedbundle)[sokolnikov911/yandex-turbo-pages

PHP7 Yandex Turbo Pages RSS feed generator

4686.9k](/packages/sokolnikov911-yandex-turbo-pages)[dotzecker/larafeed

Feed (Atom and RSS) generator for any framework

111.1k1](/packages/dotzecker-larafeed)

PHPackages © 2026

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