rss parser

2.2.0 2023-07-03 17:32 UTC

This package is auto-updated.

Last update: 2024-10-27 12:29:13 UTC


README

Continuous Integration

Requirements:

  • PHP >= 8.0.2

Installation:

composer require 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->saveXML(); // rss xml
// $rss->output(); // send rss to browser