PHPackages                             persianyii/yii2-rss - 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. persianyii/yii2-rss

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

persianyii/yii2-rss
===================

create rss uses by array or db query data

144[1 issues](https://github.com/seifzadeh/persianyii-rss/issues)PHP

Since Jun 5Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

create rss for yii2 framework
=============================

[](#create-rss-for-yii2-framework)

create rss uses by array or db query data

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist persianyii/yii2-rss "dev-master"

```

or add

```
"persianyii/yii2-rss": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
		$rss = new \persianyii\rss\Rss();

		$items = [];
		$items['atomLinkHref'] = '';
		$items['title'] = 'My News';
		$items['link'] = 'http://mysite.com/news.php';
		$items['description'] = 'The latest news about web-development.';
		$items['language'] = 'en-us';
		$items['generator'] = 'PHP RSS Feed Generator';
		$items['managingEditor'] = 'editor@mysite.com (Alex Jefferson)';
		$items['webMaster'] = 'webmaster@mysite.com (Vagharshak Tozalakyan)';

		$posts = (new \yii\db\Query())->
		select(['title', 'content', 'create_time'])->
		from('tbl_post')->
		where(['status' => '1'])->
		limit(20)->
		all();

		$items['items'] = [];

		foreach ($posts as $k => $v) {
			$items['items'][] = [
				'title' => $v['title'],
				'description' => substr($v['content'], 0, 500),
				'link' => 'http://yii.com/post/show/' . $v['title'] . '.html',
				'pubDate' => date('Y/m/d H:i', $v['create_time']),
			];
		}
		header('Content-Type: text/xml');
		echo $rss->createFeed($items);```
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![seifzadeh](https://avatars.githubusercontent.com/u/3119294?v=4)](https://github.com/seifzadeh "seifzadeh (2 commits)")

### Embed Badge

![Health badge](/badges/persianyii-yii2-rss/health.svg)

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

###  Alternatives

[maxakawizard/phpmorphy

phpMorphy - morphological analyzer library for Russian, English and German languages

1398.5k1](/packages/maxakawizard-phpmorphy)[sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

2714.7k3](/packages/sintret-yii2-chat-adminlte)[verbb/shortcut

Simple URL shortening.

122.4k](/packages/verbb-shortcut)

PHPackages © 2026

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