|Classes of Chouchen||Shikiryu PHP RSS Feed Reader and Generator||README.md||Download|
All documentation @ http://labs.shikiryu.com/SRSS/#_how
disclaimer: This class is functionnal. Anyway, use it only if you don't have other choices. For example, Zend and Symfony got their own RSS factory, don't add another one in.
How to make it read RSS?
First, we need to load the RSS :
Easy, right? Then you can extract general informations :
Then, you can take care of articles. You can select a precise article :
Or looping them :
If you like arrays, you can transform the RSS into an array :
You can also save it into your server with :
How to make it create RSS?
First, we need to initialize the RSS :
Easy, right? Then you can add general informations :
Those 3 are mandatory to validate your RSS, other options can be added. Then, you can add articles. Let's imagine $content contains an array from your database.
There are 2 functions to add item. The first one will add items in the order you enter them, from top to bottom.
The other one does the opposite and add the next item in top of your RSS
Contact : http://shikiryu.com/contact