11/03
2014
Wallogit.com
2017 © Pedro Peláez
A Forrst API Wrapper Package for Laravel 4, (*1)
Begin by installing this package through Composer. Edit your project's composer.json file to require devdojo/forrst., (*2)
"require": {
"devdojo/forrst": "dev-master"
}
Next, update Composer from the Terminal:, (*3)
composer update
Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array., (*4)
'Devdojo\Forrst\ForrstServiceProvider',
That's it! You're all set to go., (*5)
Here's an example of how to get the most recent posts., (*6)
@foreach($forrst->resp->posts as $post) print_r($post); @endforeach
For further info on using the Forrst API, be sure to checkout: http://forrst.com/api, (*7)
Hope you enjoy :), (*8)