Download the PHP package mcstutterfish/fbia-rss without Composer
On this page you can find all versions of the php package mcstutterfish/fbia-rss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mcstutterfish/fbia-rss
More information about mcstutterfish/fbia-rss
Files in mcstutterfish/fbia-rss
Download mcstutterfish/fbia-rss
More information about mcstutterfish/fbia-rss
Files in mcstutterfish/fbia-rss
Vendor mcstutterfish
Package fbia-rss
Short Description Facebook Instant Articles RSS Builder (with Laravel 4 Service Provider)
License MIT
Package fbia-rss
Short Description Facebook Instant Articles RSS Builder (with Laravel 4 Service Provider)
License MIT
Please rate this library. Is it a good library?
Informations about the package fbia-rss
FBIARss
Facebook Instant Articles RSS builder for Laravel 4
Installation
Add mcstutterfish/fbia-rss
to composer.json
.
"mcstutterfish/fbia-rss": "~1.0"
Run composer update
to pull down the latest version of FBIARss.
Now open up app/config/app.php
and add the service provider to your providers
array.
'providers' => array(
'FBIARss\FBIARssServiceProvider',
)
Now add the alias.
'aliases' => array(
'FBIARss' => 'FBIARss\FBIARssFacade',
)
Usage
Returns the feed
Route::get('/', function()
{
$feed = FBIARss::feed('2.0', 'UTF-8');
$feed->channel(array('title' => 'Channel\'s title', 'description' => 'Channel\'s description', 'link' => 'http://www.test.com/'));
for ($i=1; $i<=5; $i++){
$feed->item(array('title' => 'Item '.$i, 'description|cdata' => 'Description '.$i, 'link' => 'http://www.test.com/article-'.$i));
}
return Response::make($feed, 200, array('Content-Type' => 'text/xml'));
});
Save the feed
Route::get('/', function()
{
$feed = FBIARss::feed('2.0', 'UTF-8');
$feed->channel(array('title' => 'Channel\'s title', 'description' => 'Channel\'s description', 'link' => 'http://www.test.com/'));
for ($i=1; $i<=5; $i++){
$feed->item(array('title' => 'Item '.$i, 'description|cdata' => 'Description '.$i, 'link' => 'http://www.test.com/article-'.$i));
}
$feed->save('test.xml');
});
All versions of fbia-rss with dependencies
PHP Build Version
Package Version
The package mcstutterfish/fbia-rss contains the following files
Loading the files please wait ....