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

ActiveLibrary

joelwmale/rss-feed-php
======================

RSS Feeds for PHP is a very small, lightweight, and easy-to-use library for consuming an RSS feed.

1.1.0(7y ago)5845[1 issues](https://github.com/joelwmale/rss-feed-php/issues)MITPHPPHP ^7.1

Since Dec 27Pushed 7y agoCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

RSS Feeds for PHP
=================

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

[![travis build](https://camo.githubusercontent.com/f286fe050140a46ec2d89cdff64dbb99698b19fe158725ea5f783a6a922bcc7f/68747470733a2f2f7472617669732d63692e6f72672f6a6f656c776d616c652f7273732d666565642d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/joelwmale/riot-php-api)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

RSS Feeds for PHP is a very small, lightweight, and easy-to-use library for consuming an RSS feed.

It requires PHP 7.1 or newer with cURL installed on the system, and is licensed under the MIT License.

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

[](#installation)

Composer:

```
composer require joelwmale/rss-feed-php

```

Usage
-----

[](#usage)

Download RSS feed from URL:

```
use joelwmale\RSSFeedPHP;

$feed = RSSFeedPHP::load($url);
```

Elements are returned as `SimpleXMLElement` objects, with the outter most object being an std::class.

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

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

A helper class is available if you wish to convert it to an array instead:

```
use joelwmale\RSSFeedPHP;

$feed = RSSFeedPHP::load($url);
$feed->toArray();
```

Caching is available by adding the following:

```
use joelwmale\RSSFeedPHP;

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

Testing
-------

[](#testing)

Tests are run via phpunit:

```
phpunit
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

3

Last Release

2695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bee9935aeef3432dfbdbc6356ac4a5426aa6b22d67d15747bfb341c6ad62689?d=identicon)[joelwmale](/maintainers/joelwmale)

---

Top Contributors

[![joelwmale](https://avatars.githubusercontent.com/u/3906839?v=4)](https://github.com/joelwmale "joelwmale (12 commits)")

---

Tags

phpfeedrss

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[suin/php-rss-writer

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

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

provides functionality for creating and consuming RSS and Atom feeds

16749.2M47](/packages/laminas-laminas-feed)[rumenx/php-feed

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

3652.3k](/packages/rumenx-php-feed)[sokolnikov911/yandex-turbo-pages

PHP7 Yandex Turbo Pages RSS feed generator

4686.9k](/packages/sokolnikov911-yandex-turbo-pages)[bnomei/kirby3-feed

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

7224.8k](/packages/bnomei-kirby3-feed)[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)
