PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

RSS

Build Status

Requirements:

  • PHP >= 5.6

Installation:

  • Add to composer.json:
{
    "require": {
        "gemorroj/rss": "dev-master"
    }
}
  • install project:
$ composer update gemorroj/rss

Example:

<?php
use Rss\Rss;

$rss = new Rss('example.com rss', 'http://example.com', 'some description');
$rss->addItem(
    'one item',
    'http://example.com',
    'some description',
    new DateTime('yesterday')
);

echo $rss->output(); // rss xml