ollieza/codeigniter-rssparser
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
RSSParser library - Production ready - CI 2.1.0 compatible
====================================================================
A simple library to pass RSS feeds.
Usage:
------
$this->load->library('rssparser');
$this->rssparser->set_feed_url('http://example.com/feed');
$this->rssparser->set_cache_life(30);
$rss = $this->rssparser->getFeed(6); // Get six items from the feed
Other functions:
// Using a callback function to parse addictional XML fields
$this->load->library('rssparser', array($this, 'parseFile')); // parseFile method of current class
function parseFile($data, $item)
{
$data['summary'] = (string)$item->summary;
return $data;
}