PHPackages                             dg/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. dg/rss-php

ActiveLibrary

dg/rss-php
==========

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

v1.7(2mo ago)4801.2M↑18.7%141[7 PRs](https://github.com/dg/rss-php/pulls)10BSD-3-ClausePHPPHP &gt;=8.2CI failing

Since Aug 31Pushed 2mo ago25 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (9)Used By (10)

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

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

[![Downloads this Month](https://camo.githubusercontent.com/dd56ac2fe080e7bfcd417e216476faeb64604991a311cab5857b6f5ffdb94cfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f64672f7273732d7068702e737667)](https://packagist.org/packages/dg/rss-php)[![Latest Stable Version](https://camo.githubusercontent.com/ffeca9f509e9872b51a6cdf8d2d0cfb9de06af63ffd28f11ca4123f8b8e9bb2a/68747470733a2f2f706f7365722e707567782e6f72672f64672f7273732d7068702f762f737461626c65)](https://github.com/dg/rss-php/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/dg/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.

It requires PHP 5.3 or newer with CURL extension or enabled allow\_url\_fopen and is licensed under the New BSD License. You can obtain the latest version from our [GitHub repository](https://github.com/dg/rss-php/releases) or install it via Composer:

```
composer require dg/rss-php

```

[Support Me](https://github.com/sponsors/dg)
--------------------------------------------

[](#support-me)

Do you like RSS? Are you looking forward to the new features?

[![Buy me a coffee](https://camo.githubusercontent.com/afa7c20ccaac10ac4f1f51669bafb212856b932e0c8b276cb290336cf08624b8/68747470733a2f2f66696c65732e6e657474652e6f72672f69636f6e732f646f6e6174696f6e2d332e737667)](https://github.com/sponsors/dg)

Thank you!

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->url;

foreach ($rss->item as $item) {
	echo 'Title: ', $item->title;
	echo 'Link: ', $item->url;
	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 also enable caching:

```
Feed::$cacheDir = __DIR__ . '/tmp';
Feed::$cacheExpire = '5 hours';
```

You can setup a User-Agent if needed:

```
Feed::$userAgent = "FeedFetcher-Google; (+http://www.google.com/feedfetcher.html)";
```

If you like it, **[please make a donation now](https://nette.org/make-donation?to=rss-php)**. Thank you!

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity62

Solid adoption and visibility

Community37

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 78% 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 ~703 days

Total

8

Last Release

83d ago

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

v1.4PHP &gt;=5.3

v1.7PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f266513a3ca97500ec3d85d562b9279c7a6346358fe2b8d90390ece717a027?d=identicon)[david@grudl.com](/maintainers/david@grudl.com)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (39 commits)")[![alek13](https://avatars.githubusercontent.com/u/1972329?v=4)](https://github.com/alek13 "alek13 (1 commits)")[![alex-dna](https://avatars.githubusercontent.com/u/6982515?v=4)](https://github.com/alex-dna "alex-dna (1 commits)")[![flenczewski](https://avatars.githubusercontent.com/u/3543493?v=4)](https://github.com/flenczewski "flenczewski (1 commits)")[![ikealol](https://avatars.githubusercontent.com/u/19930012?v=4)](https://github.com/ikealol "ikealol (1 commits)")[![PeterTheOne](https://avatars.githubusercontent.com/u/666289?v=4)](https://github.com/PeterTheOne "PeterTheOne (1 commits)")[![redemption](https://avatars.githubusercontent.com/u/517273?v=4)](https://github.com/redemption "redemption (1 commits)")[![sschocke](https://avatars.githubusercontent.com/u/2003744?v=4)](https://github.com/sschocke "sschocke (1 commits)")[![xepozz](https://avatars.githubusercontent.com/u/6815714?v=4)](https://github.com/xepozz "xepozz (1 commits)")[![xpalko](https://avatars.githubusercontent.com/u/8526481?v=4)](https://github.com/xpalko "xpalko (1 commits)")[![akamiya](https://avatars.githubusercontent.com/u/199231?v=4)](https://github.com/akamiya "akamiya (1 commits)")[![zyuhel](https://avatars.githubusercontent.com/u/4603624?v=4)](https://github.com/zyuhel "zyuhel (1 commits)")

---

Tags

phprssatomfeedrss

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16649.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)[rumenx/php-feed

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

3652.3k](/packages/rumenx-php-feed)[bnomei/kirby3-feed

Generate a Atom/JSON/RSS-Feed and XML-Sitemap from Pages-Collections

7224.8k](/packages/bnomei-kirby3-feed)

PHPackages © 2026

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