2017 © Pedro Peláez
 

library crssfeed

PHP class for displaying a RSS feed

image

maof14/crssfeed

PHP class for displaying a RSS feed

  • Friday, December 19, 2014
  • by maof14
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CRSSFeed

PHP module class to get content of one or more RSS feeds. This repository also contains SimplePie. See information and license on that in the SimplePie dir., (*1)

By Mattias Olsson (maof14), (*2)

Installation

To implement crssfeed on your site, get a copy of this repository using git clone., (*3)

Make sure you have a path for the cache available at the defined location, if you do not want the feed to download new information on each request. Using a cache is better for your system performance. You can adjust this path in the module file, CRSSFeed.php., (*4)

Initialize a new instance of the module, sending in a adress to a RSS-feed to the constructor, and a duration for the cache if you like., (*5)

Next, echo the method getFeed() on the object to display the feed., (*6)

Example:, (*7)

$feed = new CRSSFeed(  
    [  
        "http://addresstofeed.com/rss",  
        "http://addresstoanotherfeed.com/rss"  
    ]  
);  
echo $feed->getFeed();  

Licence

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

History

v0.1.0 (first version) * Base functionality., (*9)

Copyright (c) Mattias Olsson, 2014 mattias.olsson@hotmail.se, (*10)

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

The Versions

19/12 2014

dev-master

9999999-dev

PHP class for displaying a RSS feed

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Mattias Olsson

micro framework mvc module education