2017 © Pedro Peláez
 

library rss

lib16 RSS Builder is a PHP 7 library for creating RSS feeds.

image

lib16/rss

lib16 RSS Builder is a PHP 7 library for creating RSS feeds.

  • Thursday, June 15, 2017
  • by hoffmann-oss
  • Repository
  • 1 Watchers
  • 2 Stars
  • 347 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Lib16 RSS Builder for PHP 7

A library for creating RSS feeds written in PHP 7., (*1)

Build Status Coverage, (*2)

Installation with Composer

This package is available on packagist, so you can use Composer to install it. Run the following command in your shell:, (*3)

composer require lib16/rss

Basic Usage

Example markup is taken from en.wikipedia.org/wiki/Rss, (*4)

pubDate(new DateTime('2010-09-06 00:01 +0'))
    ->lastBuildDate(new DateTime('2009-09-06 16:20 +0'))
    ->ttl(1800);

$channel
    ->item(
        'Example entry',
        'Here is some text containing an interesting description.',
        'http://www.example.com/blog/post/1'
    )
    ->guid('7bd204c6-1655-4c27-aeee-53f933c5395f', false)
    ->pubDate(new DateTime('2009-09-06 16:20 +0'));

RssMarkup::headerfields('example');
print $channel;
```
… generates the following output:

```xml

<rss version="2.0">
    <channel>
        <title>RSS Title</title>
        <description>This is an example of an RSS feed</description>
        <link>http://www.example.com/main.html</link>
        <pubDate>Mon, 06 Sep 2010 00:01:00 +0000</pubDate>
        <lastBuildDate>Sun, 06 Sep 2009 16:20:00 +0000</lastBuildDate>
        <ttl>1800</ttl>
        <item>
            <title>Example entry</title>
            <description>Here is some text containing an interesting description.</description>
            <link>http://www.example.com/blog/post/1</link>
            <guid isPermaLink="false">7bd204c6-1655-4c27-aeee-53f933c5395f</guid>
            <pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate>
        </item>
    </channel>
</rss>

The Versions

15/06 2017

dev-master

9999999-dev https://github.com/lib16/rss-builder-php

lib16 RSS Builder is a PHP 7 library for creating RSS feeds.

  Sources   Download

MIT

The Requires

 

rss writer feeds builder