nckg/feedme

There is no license information available for the latest version (dev-master) of this package.

A library for generating RSS feeds

dev-master 2014-10-13 13:14 UTC

This package is auto-updated.

Last update: 2024-10-27 01:50:10 UTC


README

Build Status

Installation

Simply add a dependency on nckg/feedme to your project's composer.json file if you use Composer to manage the dependencies of your project.

{
    "require-dev": {
        "nckg/feedme": "dev-master"
    }
}

Usage

    $feed = new Feed;
    $channel = new Channel;
    $channel
        ->setTitle('An RSS channel')
        ->setFeedUri('http://www.w3.org')
        ->setWebsiteUri('http://github.com/nckg/feedme')
        ->setDescription('My RSS channel')
        ->setLanguage('nl-BE');

    $item = new Item();
    $item
        ->setTitle('My first blog post')
        ->setPublicationDate($date)
        ->setDescription('Foobar');

    $channel->addItem($item);
    $feed->addChannel($channel);
    echo $feed->render();

License

MIT license