2017 © Pedro Peláez
 

library rssfeed

Simple Pie rss wrapper

image

matl14/rssfeed

Simple Pie rss wrapper

  • Sunday, December 14, 2014
  • by matl14
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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

RSS wrapper

This repository is an RSS-wrapper around SimplePie, which is used to display RSS-feeds. The main focus of this repo is using the module with Anax-MVC, https://github.com/mosbth/Anax-MVC., (*2)

How to install

You can install it using composer as such:, (*3)

"require": {
    "matl14/rssfeed": "dev-master"
},

How to use

If you are using this feed with Anax-MVC you can use it as following with your index.php:, (*4)

$app->router->add('rss', function() use ($app) {

    require '../vendor/matl14/rss/src/library/CRSS.php';
    $feed = new \matl14\library\CRSS([
            'http://feeds.reuters.com/news/reutersmedia'
            'http://www.irishtimes.com/cmlink/news-1.1319192',
            'http://www.smhi.se/weatherSMHI2/varningar/smhi_alla_varningar.xml',
            'http://www.independent.ie/breaking-news/irish-news/'
    ]);

    $app->theme->setTitle("RSS");    
    $app->views->add('default/page', [
        'title' => 'RSS',        
        'content' => $feed->printFeed(),
    ]);

});

This will result in tapping into a feed from reuters.com and displaying the feed., (*5)

How to style

If you want to style the rss-feed you can for example style it like this:, (*6)

div.rss {
    width: 700px;
}
.smaller{
    font-size: smaller;
}

The Versions

14/12 2014

dev-master

9999999-dev https://github.com/matl14/rssfeed

Simple Pie rss wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Mariana

rss

11/12 2014

dev-rssfeed

dev-rssfeed https://github.com/matl14/rssfeed

Simple Pie rss wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Mariana

rss