Php RSS2Writer Class
RSS2Writer v2.1 has been updated to v3.0 beta. The new version can be downloaded at the Php FeedWriter website: http://phpfeedwriter.webmasterhub.net/ Php FeedWriter (v3.0 beta) now provides the ability to output to various feed formats. Php FeedWriter can currently generate Atom 1.0, RSS 2.0, RSS 1.0, RSS 0.92 and RSS 0.91 compatible feeds. View more information about Php FeedWriter, including online documentation. For information about the latest update and release, see the article Php FeedWriter 3.0 (beta) Released.
--------------------------------
Free Php script - RSS 2.0 feed generator (RSS2Writer v2.1)
Generate an RSS 2.0 compatible feed using this free Php script written by Daniel Soutter.
Details:
Php RSS2Writer - Version 2.1
The Php RSS2Writer class has recently been updated to improve useability and functionality to generate an RSS feed from content on a website or from a database.
For more information about the Php RSS2Writer class, please see the following page:
Php RSS2Writer (v2.0) - Generate RSS 2.0 Feed - Class Usage InstructionsIf you have any comments or suggestions for improvements to the Php RSS2Writer class, please post a comment to this page on Code-Tips.com.
The PhpRSS2Writer package includes the RSS2Writer class file, and a sample controller showing how to generate an RSS feed using the class. View the output of the sample controller script, see: Php RSS2Writer Example Feed. This script may be used or developed at your own risk as long as it is referenced appropriately. Please post any comments or suggestions for improvement to this article.
Download Php
RSS2Writer (v2.1) Free:
Php RSS2 Writer Class (v2.1) & Sample Controller (Php Class file and sample Controller file Zipped)
The main RSS 2 Writer class is the RSS2Writer
class in RSS2Writer.php, which contains
functions that required to generate RSS 2.0
feeds. Comments throughout the code provide
information about using the class and functions.
Download the individual
Php RSS2 Writer Class file (save and rename to .php).
The sampleController.php file provides detailed
information as well as examples of how to use
the class. Any functionality requirements are
noted in the sample controller. Download
the
Php RSS2 Writer Class Controller file (save and
rename to .php).
Changes:
Version 2.1:
-
30/08/2010 - CDATA Support: Allow data in the title and content/description elements to be included in CDATA tags when outputting the feed xml. To enable this option, pass true as the final paramater when constructing an RSS2Writer object from the class.
Version 2.0:
-
The getXML() function now does all the work to generate a valid RSS 2.0 Feed, taking data from arrays which are populated using functions provided by the class using a single instance of the XML Writer.
-
You no longer need to manually close an item element after optional elements have been added. To add optional elements, simply call the addElement function after creating the initial feed (adds to the Channel), or after adding an item to the feed, which will add the optional element and specified data to the item most recently added to the feed.
Known / Resolved Issues:
-
20/08/2010 - Issue incorporating CDATA into feed xml (resolved & included in v2.1 update).
Previous Versions:
Php RSS2Writer Version 1.0
Information about Version 1.0
of the Php RSS2Writer class can be found on the
following post:
Free Php RSS 2.0 Feed Generator using XMLWriter -
information & usage
Download Previous (Outdated) Versions: