ceus-media / rss
0.3.0
2023-11-11 05:08 UTC
Requires
- php: ^7.4 | ^8.1
- ext-dom: *
- ceus-media/common: ^1.0 | 1.0.x-dev | ^0.9 | 0.9.x-dev
Requires (Dev)
README
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);