A package to make creating an RSS feed easy.

1.0.1 2018-08-26 09:16 UTC

This package is not auto-updated.

Last update: 2023-12-10 01:26:23 UTC


A package to make generating an RSS 2.0 feed easy and straightforward.


composer require programster/rss-feed

Example Usage


require_once(__DIR__ . '/vendor/autoload.php');

use Programster\RssFeed;

$items = array();

$pubDate = new DateTime();

$items[] = new RssFeed\RssItem(
    "Article Title", 
    "A description of the article goes here.", 

// .. add another item, and another, and another...

$channel = new RssFeed\RssChannel(
    "My Awesome Blog", 
    "Tutorials on This and That", 
    new RssFeed\NullRssImage(), 

$rss = new RssFeed\RssFeed($channel);

header('Content-type: application/xml');
echo $rss;

Useful Links