PHPackages                             shikiryu/shikiryurss - 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. shikiryu/shikiryurss

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

shikiryu/shikiryurss
====================

A RSS reader and writer

60[1 issues](https://github.com/Chouchen/ShikiryuRSS/issues)PHP

Since Apr 17Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

SћíкïяўЦЯSS
===========

[](#sћíкïяўцяss)

> PHP library reading and creating RSS

**disclaimer:**This class is functional. Anyway, use it only if you don't have other choices.
For example, [Zend](http://framework.zend.com/manual/current/en/modules/zend.feed.introduction.html) and Symfony got their own RSS factory, don't add another one in.

📚 Table of Contents
-------------------

[](#books-table-of-contents)

- [Installation](#package-installation)
- [Usage](#rocket-usage)
- [Features](#sparkles-features)
- [Support](#hammer_and_wrench-support)
- [Contributing](#memo-contributing)
- [License](#scroll-license)

📦 Installation
--------------

[](#package-installation)

```
composer install shikiryu/shikiryurss
```

or

```
include '/path/to/this/library/autoload.php';
```

🚀 Usage
-------

[](#rocket-usage)

---

How to make it read RSS?

First, we need to load the RSS :

```
$rss = SRSS::read('http://exemple.com/rss.xml');

```

Easy, right? Then you can extract general information :

```
echo $rss->title; // will display blog title

```

Then, you can take care of articles. You can select a precise article :

```
$article1 = $rss->getItem(1); // or $rss->getFirst();

```

Or looping them :

```
foreach($rss as $article) {
    echo ''. SRSSTools::formatDate('d/m/y', $item->pubDate).' '.$item->title.'';
}

```

If you like arrays, you can transform the RSS into an array :

```
$rssArray = $rss->toArray();

```

You can also save it into your server with :

```
$rss->save('/www/rss/rss.xml'); // example

```

Or finally, you can display it with :

```
$rss->show();

```

---

How to make it create RSS?

First, we need to initialize the RSS :

```
$rss = SRSS::create();

```

Easy, right? Then you can add general information :

```
$rss->title = 'My Awesome Blog';
$rss->link = 'http://shikiryu.com/devblog/';
$rss->description = 'is awesome';

```

Those 3 are mandatory to validate your RSS, other options can be added. Then, you can add articles. Let's imagine $content contains an array from your database.

```
foreach($content as $item){
    $rssitem = new Item(); // we create an item
    $rssitem->title = $item["title"]; // adding title (option)
    $rssitem->link = $item['link']; // adding link (option)
    $rssitem->pubDate = $item["date"]; // date automatically transformed into RSS format (option)
    $rssitem->description = $item["text"]; // adding description (mandatory)
    $rss->addItem($rssitem); // we add the item into our RSS
}

```

There are 2 functions to add item. The first one will add items in the order you enter them, from top to bottom.

```
$rss->addItem($item);

```

The other one does the opposite and add the next item in top of your RSS

```
$rss->addItemBefore($item);

```

---

✨ Features
----------

[](#sparkles-features)

 Read every RSS 2.0  Based on RSS 2.0 specifications.  Write and validate RSS 2.0 file  Based on RSS 2.0 specifications. 🛠️ Support
----------

[](#hammer_and_wrench-support)

Please [open an issue](https://github.com/Chouchen/ShikiryuRSS/issues) for support.

📝 Contributing
--------------

[](#memo-contributing)

Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/Chouchen/ShikiryuRSS/pulls).

📜 License
---------

[](#scroll-license)

[Creative Commons Attribution NonCommercial (CC-BY-NC)](https://tldrlegal.com/license/creative-commons-attribution-noncommercial-(cc-nc)) © [Chouchen](https://github.com/Chouchen/)

All documentation @ [http://labs.shikiryu.com/SRSS/#\_how](http://labs.shikiryu.com/SRSS/#_how).

Contact :

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.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.

### Community

Maintainers

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

---

Top Contributors

[![Chouchen](https://avatars.githubusercontent.com/u/383673?v=4)](https://github.com/Chouchen "Chouchen (14 commits)")[![shikiryu](https://avatars.githubusercontent.com/u/49765985?v=4)](https://github.com/shikiryu "shikiryu (8 commits)")

---

Tags

libraryphprss

### Embed Badge

![Health badge](/badges/shikiryu-shikiryurss/health.svg)

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

###  Alternatives

[monsoonconsulting/magento2-pwa

Adds a service worker to Magento2 to enable PWA features.

2322.9k](/packages/monsoonconsulting-magento2-pwa)[yii2mod/yii2-selectize

selectize.js wrapper for yii2

1730.7k1](/packages/yii2mod-yii2-selectize)

PHPackages © 2026

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