2017 © Pedro Peláez
 

library laravel-rss

RSS builder for Laravel 5

image

ahmed-aliraqi/laravel-rss

RSS builder for Laravel 5

  • Friday, March 23, 2018
  • by ahmed-aliraqi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 67 % Grown

The README.md

RSS

RSS builder for Laravel 5, (*1)

Installation

composer require ahmed-aliraqi/laravel-rss

Usage

Returns the feed, (*2)

Route::get('/', function()
{
    $feed = Rss::feed('2.0', 'UTF-8');
    $feed->channel([
        'title'       => "Channel's title",
        'description' => "Channel's description",
        'link'        => "http://www.test.com/"
    ]);

    for ($i=1; $i<=5; $i++) {
        $feed->item([
            'title' => 'Item '.$i,
            'description|cdata' => 'Description '.$i,
            'link' => 'http://www.test.com/article-'.$i
        ]);
    }

    return response($feed, 200)->header('Content-Type', 'text/xml');
});

Save the feed, (*3)

Route::get('/', function()
{
    $feed = Rss::feed('2.0', 'UTF-8');
    $feed->channel([
        'title'       => "Channel's title",
        'description' => "Channel's description",
        'link'        => "http://www.test.com/"
    ]);

    for ($i=1; $i<=5; $i++) {
        $feed->item([
            'title' => 'Item '.$i,
            'description|cdata' => 'Description '.$i,
            'link' => 'http://www.test.com/article-'.$i
        ]);
    }

    $feed->save('test.xml');
});

The Versions

23/03 2018

dev-master

9999999-dev

RSS builder for Laravel 5

  Sources   Download

MIT

The Requires

 

by Ahmed Fathy
by Maycon Viana Bordin
by Avatar thujohn

laravel rss laravel5

23/03 2018

v1.0.0

1.0.0.0

RSS builder for Laravel 5

  Sources   Download

MIT

The Requires

 

by Ahmed Fathy
by Maycon Viana Bordin
by Avatar thujohn

laravel rss laravel5