PHPackages                             open20/open2-amos-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. open20/open2-amos-rss

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

open20/open2-amos-rss
=====================

Sistema AMOS per RSS

1.0.1(3y ago)00PHPPHP &gt;=5.4.0

Since Sep 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/regionelombardia-open20/open2-rss)[ Packagist](https://packagist.org/packages/open20/open2-amos-rss)[ Docs](http://git.open20.it/amos/amos-utility)[ RSS](/packages/open20-open2-amos-rss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

amos-rss
========

[](#amos-rss)

Amos Framework extension to provide functionality for consuming RSS and Atom feeds using zend-feed library.

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

[](#installation)

```
{
	"require":
	{
  		"open20/amos-rss": "~1.0.0"
	}
}

```

Configuration
-------------

[](#configuration)

In config file

```
/config/web.php

```

Add feed component

```
'components' => array(
        ...
        'rss' => array(
        	 	'class' => 'amos\rss\components\RssFeed',
        		),
		    )

```

Simple usage
------------

[](#simple-usage)

**Read Rss feed:**

```
$feed=Yii::$app->feed->reader()->import('http://exapmple.com/feed.rss');
```

This will get RSS feed, parse it and return feed object. For more details you can read the official Zend-feed extention documentaion:

**Create Rss feed:**

Create action Rss in controller

```
public function actionRss(){

     $feed=Yii::$app->feed->writer();

    $feed->setTitle(Yii::$app->params['title']);
		$feed->setLink('http://example.com');
		$feed->setFeedLink('http://example.com/rss', 'rss');
		$feed->setDescription(Yii::t('app','Recent headlines'));
		$feed->setGenerator('http://example.com/rss');
		$feed->setDateModified(time());
		/**
		* Add one or more entries. Note that entries must
		* be manually added once created.
		*/
		$posts=Post::find()->orderBy('id DESC')->limit(20)->all();
		foreach($posts as $post){
				$entry = $feed->createEntry();
				$entry->setTitle($post->title);
				$entry->setLink(Yii::$app->urlManager->createAbsoluteUrl('/post/view',['id'=>$post->id]));
				$entry->setDateModified(intval($post->created));
				$entry->setDateCreated(intval($post->created));
				$entry->setContent(
				   $post->content
				);
				$entry->setEnclosure(
					[
					 'uri'=>$post->image,
					 'type'=>'image/jpeg',
					 'length'=>filesize(Yii::getAlias('@webroot').$post->image)
					 ]
				);
				$feed->addEntry($entry);
		}
		/**
		* Render the resulting feed to Atom 1.0 and assign to $out.
		* You can substitute "atom" with "rss" to generate an RSS 2.0 feed.
		*/
		$out = $feed->export('rss');
		header('Content-type: text/xml');
		echo $out;
		die();
	}
```

add rss migrations to console modules (console/config/migrations-amos.php):

```
'@vendor/open20/amos-rss/src/migrations'

```

```
add rss module to backend modules (backend/config/modules-amos.php):

```

'rss' =&gt; \[ 'class' =&gt; 'amos\\rss\\Module', 'modelsEnabled' =&gt; \[ 'open20\\amos\\news\\models\\News', \], 'federationUrls' =&gt; \[ '' \] \],

```

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1343d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6eb97765ff9c2a6c83df362376ac9fe8f21e4ac4c3b65fd1e2380233178fe500?d=identicon)[open2.0](/maintainers/open2.0)

---

Tags

utilityyii2amos

### Embed Badge

![Health badge](/badges/open20-open2-amos-rss/health.svg)

```
[![Health](https://phpackages.com/badges/open20-open2-amos-rss/health.svg)](https://phpackages.com/packages/open20-open2-amos-rss)
```

PHPackages © 2026

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