weleoka/crssb

Simple Pie wrapper CRSSB for simplepie

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2014-12-19 12:42 UTC

This package is not auto-updated.

Last update: 2024-04-23 01:20:23 UTC


README

PHP class for wrapping simplepie parser with RSS functionality.

The B version has unit testing. crssb.

By Kai Weeks, me@eee.se.

Build Status Scrutinizer Code Quality Code Coverage

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.

PHPUnit tests can be found by running the /test/config.php with PHPUnit.

Please give feedback on any improvements that you would like to see. And report bugs to me@eee.se!!!!

License

This software is free software and carries a MIT license.

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.

  • Clone a version of Anax-MVC from https://github.com/mosbth/Anax-MVC.git

  • Install composer.phar in Anax-MVC root directory.

  • 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" }

  • 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.

*Then copy this code into Anax-MVC's webroot/hello.php

$feed = new \Weleoka\Crssb\Crssb( [ 'http://feeds.feedburner.com/TechCrunch/' ]); $app->views->add($feed->printFeed());

  • Substitute the feed for any other RSS of your choice.

  • For basic formatting copy weleoka/crssb/webroot/css/rss.css to Anax-MVC/webroot/css directory for basic styling.

  • Enjoy!!!

History

v1.0.1 (latest)

v1.0.1 (2014-12-13) v1.0 (2014-12-12)

 .  
..:  Copyright (c) 2013 - 2014 Kai Weeks, me@eeee.se