0.3.0 2023-11-11 05:08 UTC

This package is auto-updated.

Last update: 2024-03-11 06:13:39 UTC


README

Branch Release PHP version PHPStan level

Set of PHP classes to generate, read and combine RSS feeds.

Installation

Use composer to install. Or add packagist package ceus-media/rss to your composer-driven project.

Example

use \CeusMedia\RSS as RSS;

$channel = new RSS\Model\Channel();
$channel->setTitle("RSS Test Channel");
$channel->setLink("http://example.com/#rss");
$channel->setDescription("...");

$item = new RSS\Model\Item();
$item->setTitle("Item 1");
$item->setLink("http://example.com/#item1");

$channel->addItem($item);

$xml = RSS\Renderer::render($channel);