Back to the module list

Really Simple Syndication

The class create a valid RSS XML.

Usage

$rss = new rss ();
$rss->title ("Global Title")
    ->link ("http://localhost")
    ->language ("fr-fr")
    ->description  ("The Super Global Description");
$rss->addItem ()->title ("Item1 Title")
                ->link ("http://Item1Link")
                ->description  ("Item1 Description");
$rss->addItem ()->title ("Item2 Title")
                ->pubDate ("2017-04-13 12:25:30")
                ->link ("http://Item2Link")
                ->description  ("Item2 Description");
$res = $rss->asXML ();