PHPackages                             zhexiao/yii-simplepie - 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. zhexiao/yii-simplepie

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

zhexiao/yii-simplepie
=====================

simplepie for yii extension

30PHP

Since Mar 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/zhexiao/yii-simplepie)[ Packagist](https://packagist.org/packages/zhexiao/yii-simplepie)[ RSS](/packages/zhexiao-yii-simplepie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii-simplepie
=============

[](#yii-simplepie)

yii-simplepie is a yii extension for parse rss feeds：

- simplepie：
- simplepie document：

Usage
=====

[](#usage)

install extension in yii
------------------------

[](#install-extension-in-yii)

Download all file and put it into yii extension folder, then add the follow code in config/main.php

```
	'simplepie' => array(
		'class' => 'ext.simplepie-library.bootstrap'
	),
```

configuration and initialization
--------------------------------

[](#configuration-and-initialization)

```
	$feed = Yii::app()->simplepie->config(array(
		'set_feed_url' => $rssFeed,
		'enable_cache' => true,
		'set_cache_location' => Yii::app()->runtimePath . DIRECTORY_SEPARATOR . 'cache'
	))->parse();
```

all default configuration
-------------------------

[](#all-default-configuration)

```
	array(
		// URL of the feed you want to parse
		'set_feed_url' => '',

		// Force SimplePie to parse the content, even if it doesn't believe it's a feed
		'force_feed' => true,

		// Enable/disable caching in SimplePie
		'enable_cache' => false,

		// Set the folder where the cache files should be written
		'set_cache_location' => './cache',

		// Set the minimum time for which a feed will be cached
		'set_cache_duration' => 3600,

		// Enable/disable the reordering of items into reverse chronological order
		'enable_order_by_date' => true,

		// Set a limit on how many items are returned per feed with Multifeeds
		'set_item_limit' => 0,

		// HTML attributes to strip
		'strip_attributes' => array('alt', 'bgsound', 'onclick'),

		// HTML tags to strip
		'strip_htmltags' => array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'),

		// Override the character set within the feed
		'set_input_encoding' => false,

		// Set the output character set
		'set_output_encoding' => 'UTF-8',

		// Timeout for fetching remote files
		'set_timeout' => 30,
	);
```

get feed attributes
-------------------

[](#get-feed-attributes)

```
	$feed->author  // Get a single author for the feed.
	$feed->copyright  // Get the feed copyright information.
	$feed->description  // Get the feed description.
	$feed->encoding  // Get the character set for the returned values.
	$feed->favicon  // Get the URL for the favicon of the feed's website.
	$feed->item  // Get a single item.
	$feed->items  // Get all the items.
	$feed->item_quantity  // Get the number of items in the feed.
	$feed->language  // Get the feed language.
	$feed->link  // Get a single link.
	$feed->links  // Get all the links of a specific relation.
	$feed->permalink  // Get the first feed link (i.e. the permalink).
	$feed->title  // Get the feed title.
	$feed->type  // Get the type of feed.
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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/d8d0a48003877b58cc6dd2bdb481dc903a34ad7b4a587e104f7b105150f4462f?d=identicon)[zhexiao](/maintainers/zhexiao)

---

Top Contributors

[![zhexiao](https://avatars.githubusercontent.com/u/2562837?v=4)](https://github.com/zhexiao "zhexiao (24 commits)")

---

Tags

rss-feed-parseryiiyii-extension

### Embed Badge

![Health badge](/badges/zhexiao-yii-simplepie/health.svg)

```
[![Health](https://phpackages.com/badges/zhexiao-yii-simplepie/health.svg)](https://phpackages.com/packages/zhexiao-yii-simplepie)
```

PHPackages © 2026

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