dev-master
9999999-dev https://github.com/weleoka/crssbSimple Pie wrapper CRSSB for simplepie
MIT
The Requires
by Kai Weeks
wrapper rss education
Simple Pie wrapper CRSSB for simplepie
PHP class for wrapping simplepie parser with RSS functionality., (*1)
The B version has unit testing. crssb., (*2)
By Kai Weeks, me@eee.se., (*3)
The PHP Class has the functions to output latest feed, a brief list of recent feeds, and then the whole feed entity. oneFeed(), streamlineFeed() and printFeed() respectively give output., (*5)
PHPUnit tests can be found by running the /test/config.php with PHPUnit., (*6)
Please give feedback on any improvements that you would like to see. And report bugs to me@eee.se!!!!, (*7)
This software is free software and carries a MIT license., (*8)
Important: The cache folder in /src has to be writable to the webserver for Crss to work. Important: For production environment if running apache-server be aware of the .htaccess in webroot., (*9)
Clone a version of Anax-MVC from https://github.com/mosbth/Anax-MVC.git, (*10)
Install composer.phar in Anax-MVC root directory., (*11)
Modify composer.json by adding the required packages (note: simplepie is not required but needs to be installed in Crssb directory): "require": { "weleoka/crssb": "dev-master" }, (*12)
Run the composer config and update commands to get the latest packagist.com dev of weleoka/crssb istalled in the vendor directory. Then again run config and update on composer.phar in the Crssb directory which already has included a composer.json file. This installs SimplePie as a dependency for crssb., (*13)
*Then copy this code into Anax-MVC's webroot/hello.php, (*14)
$feed = new \Weleoka\Crssb\Crssb( [ 'http://feeds.feedburner.com/TechCrunch/' ]); $app->views->add($feed->printFeed());, (*15)
Substitute the feed for any other RSS of your choice., (*16)
For basic formatting copy weleoka/crssb/webroot/css/rss.css to Anax-MVC/webroot/css directory for basic styling., (*17)
Enjoy!!!, (*18)
v1.0.1 (latest), (*19)
v1.0.1 (2014-12-13) v1.0 (2014-12-12), (*20)
. ..: Copyright (c) 2013 - 2014 Kai Weeks, me@eeee.se
Simple Pie wrapper CRSSB for simplepie
MIT
wrapper rss education