Skip to content

ollieza/codeigniter-rssparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

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;
}

About

Improved version (code style & feature) of version at http://codeigniter.com/wiki/RSSParser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages