PHPackages                             inspirecharles/rsswriter - 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. inspirecharles/rsswriter

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

inspirecharles/rsswriter
========================

Yii2 module for automatically generation RSS 2.0 feeds

1.0.1(8y ago)069MITPHP

Since Feb 8Pushed 8y agoCompare

[ Source](https://github.com/inspirecharles/rsswriter)[ Packagist](https://packagist.org/packages/inspirecharles/rsswriter)[ RSS](/packages/inspirecharles-rsswriter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

RSS Generator Module for Yii2
=============================

[](#rss-generator-module-for-yii2)

Yii2 module for automatically generation RSS 2.0 feeds.

Main features:

- automatic caching of rss feeds
- unlimited number of rss feeds
- flexible module configuration

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

- Either run

```
php composer.phar require --prefer-dist "inspirecharles/rsswriter" "*"

```

or add

```
"inspirecharles/rsswriter" : "*"
```

to the require section of your application's `composer.json` file.

- Apply all available migrations in `migrations` folder:

```
$ php yii migrate/up --migrationPath=@vendor/inspirecharles/rsswriter/migrations
```

- Configure the `cache` component of your application's configuration file, for example:

```
'components' => [
    'cache' => [
        'class' => 'yii\caching\FileCache',
    ],
]
```

- Add a new module in `modules` section of your application's configuration file, for example:

```
'modules' => [
    'rss' => [
        'class' => 'inspirecharles\rss\Rss',
        'feeds' => [
            'rss' => [
                'title' => 'Feed title',
                'description' => 'feed description',
                'link' => 'http://your.site.com/',
                'language' => 'en-US'
            ],
        ]
    ],
],
```

- Add a new rule for `urlManager` of your application's configuration file, for example:

```
'urlManager' => [
    'rules' => [
        ['pattern' => '', 'route' => 'rss/default/index', 'suffix' => '.xml'],
    ],
],
```

- Add a new `` tag to your `` tag, for example:

```

```

Usage
-----

[](#usage)

For example:

```
...
public function beforeSave($insert)
{
    if (parent::beforeSave($insert)) {
        if ($insert) {
            $rss = Yii::$app->getModule('rss');
            $rssItem = $rss->createNewItem();

            $rssItem->title = $this->title;
            $rssItem->description = $this->description;
            $rssItem->link = Url::to($this->url, true);
            $rssItem->pubDate = time();

            return $rss->addItemToFeed('rss', $rssItem);
        }
        return true;
    }
    return false;
}

public function afterDelete()
{
    parent::afterDelete();
    $rss = Yii::$app->getModule('rss');

    $rss->deleteItems('rss', ['link' => Url::to($this->url, true)]);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64c754a143b8019e42634a18713a22943e44ac3c56c0bb6198f503344c4419d7?d=identicon)[inspirecharles](/maintainers/inspirecharles)

---

Top Contributors

[![inspirecharles](https://avatars.githubusercontent.com/u/31230349?v=4)](https://github.com/inspirecharles "inspirecharles (3 commits)")

---

Tags

rsswriteryii2module

### Embed Badge

![Health badge](/badges/inspirecharles-rsswriter/health.svg)

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

###  Alternatives

[akiraz2/yii2-ticket-support

Yii2 Support Ticket Module, easy, flexible, fast

611.7k](/packages/akiraz2-yii2-ticket-support)[hiqdev/yii2-language

Yii2 module for language switching

1126.1k1](/packages/hiqdev-yii2-language)[vova07/yii2-start-comments-module

The comments module for Yii2-Start application.

159.5k1](/packages/vova07-yii2-start-comments-module)

PHPackages © 2026

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