PHPackages                             petlid/rssreader - 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. petlid/rssreader

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

petlid/rssreader
================

PHP class for getting an rss-feed

v3.0(10y ago)026MITPHPPHP &gt;=5.3.0

Since May 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/PetLid/rssreader)[ Packagist](https://packagist.org/packages/petlid/rssreader)[ RSS](/packages/petlid-rssreader/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (5)Used By (0)

rssreader
=========

[](#rssreader)

[![Build Status](https://camo.githubusercontent.com/4a2f8f088af86a85d0c4f654c22434582a701d7e7fee357b2e29b198fa8c4b37/68747470733a2f2f7472617669732d63692e6f72672f5065744c69642f7273737265616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PetLid/rssreader)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7eabe9d4496af5139b1020fbd656e0e21d79e213d5d607a8ab5cd084f544f462/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065744c69642f7273737265616465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PetLid/rssreader/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/70a6475a1d38373e85ebd61399ac5d188e537528b3f005fb4b891b7fb900fe9b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065744c69642f7273737265616465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PetLid/rssreader/?branch=master)

Introduction
------------

[](#introduction)

A small SimplePie wrapper-class designed for usage with the Anax/MVC framework, generates HTML for an RSS-feed.

By Petrus Lidholm |

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

[](#installation)

Since rssreader is designed for Anax/MVC framework and is dependant on it, it is required that you get the framework before following the steps below. Anax/MVC is located at .

**rssreader** also uses SimplePie, include it in the composer.json located in the root :`"require": { "simplepie/simplepie": "dev-master" }`.

### Download

[](#download)

You can either download this repo as a .zip-file or you can use composer to get the package through packagist by adding the following line in the composer.json located in the root:

`"require": { "petlid/rssreader": "dev-master" }`.

### Setup

[](#setup)

To use **rssreader** you'll have to set it up as a controller in Anax/MVC,

```
$di->set('RssController', function() use ($di) {
    $controller = new \petlid\RSSReader\RSSReaderController(:url);
    $controller->setDI($di);
    return $controller;
});

```

**Important** replace `:url` with the url (in quotation marks) of the RSS-feed you'd like to display.

To view the RSS-feed you can add a route to the viewAction in your front controller like this:

```
$app->router->add('rss', function() use ($app) {
    $app->dispatcher->forward([
        'controller' => 'RSS',
        'action'     => 'view',
        'params'     => [
            'noOfItems' => :noOfItems
        ],
    ]);
});

```

the name of the added route is irrelevant. To access the route simply go to your front controller, for example index.php, and add '/rss' to the url.

**Notice** `:noOfItems` is the number of rss-articles you want in your feed. It is optional (and defaults to 5).

Lastly, copy the contents of `petlid\rssreader\view` into `Anax-MVC\app\view`.

### Optional

[](#optional)

You can choose to get some basic styling of the RSS-feed by copying the catalog `petlid\rssreader\css` into `Anax-MVC\webroot` and adding the stylesheet in the front controller from which you call `$app->theme->addStylesheet('css/rss.css');`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

4

Last Release

3693d ago

Major Versions

v0.1 → v1.02016-05-19

v1.0 → v2.02016-05-21

v2.0 → v3.02016-05-21

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/petlid-rssreader/health.svg)

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

###  Alternatives

[bootflat/bootflat

An open source Flat UI KIT based on Bootstrap (3.3.0). A faster, easier and less repetitive way for web developers to create elegant web apps.

4.2k3.3k](/packages/bootflat-bootflat)[goalgorilla/social_template

Social project template for composer based Open Social projects.

3545.0k](/packages/goalgorilla-social-template)[motomedialab/simple-laravel-audit

A simple audit helper that integrates directly with Laravel &amp; FilamentPHP

264.1k](/packages/motomedialab-simple-laravel-audit)[luchavez/boilerplate-generator

A boilerplate generator for building packages and implementing DDD on Laravel 8|9|10.

111.7k2](/packages/luchavez-boilerplate-generator)

PHPackages © 2026

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