Skip to content

v3.0.0

Latest

Choose a tag to compare

@Gemorroj Gemorroj released this 11 Oct 09:44
· 1 commit to master since this release

3.0.0

Added

  • RSS 2.0 parser: Rss\Parser::parse(string $xml): Rss\Model\Feed (tolerant to foreign feeds, falls back to content:encoded).
  • Item enclosures: Rss\Model\Enclosure (url, length, type).
  • Item guid support (isPermaLink="false").
  • Optional channel publish date in the Rss\Generator constructor.

Changed

  • BREAKING: Rss\Rss renamed to Rss\Generator.
  • BREAKING: Rss\Item and Rss\Enclosure moved to Rss\Model\Item / Rss\Model\Enclosure; new Rss\Model\Feed.
  • BREAKING: Generator::addItem() now takes a Rss\Model\Item instead of positional arguments.
  • BREAKING: Item and Feed fields are nullable (represent missing data).
  • New requirement: ext-libxml.

Fixed

  • Special characters (&, <) in channel/item title, link, description were not escaped, dropping content and emitting PHP warnings.