2017 © Pedro Peláez
 

library crssb

Simple Pie wrapper CRSSB for simplepie

image

weleoka/crssb

Simple Pie wrapper CRSSB for simplepie

  • Friday, December 19, 2014
  • by weleoka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

weleoka/crssb

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)

Build Status Scrutinizer Code Quality Code Coverage, (*4)

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)

License

This software is free software and carries a MIT license., (*8)

Setup for Anax-MVC

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)

History

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

The Versions

19/12 2014

dev-master

9999999-dev https://github.com/weleoka/crssb

Simple Pie wrapper CRSSB for simplepie

  Sources   Download

MIT

The Requires

 

wrapper rss education