11/03
2014
Wallogit.com
2017 © Pedro Peláez
A Dribbble API Package for Laravel, (*1)
Begin by installing this package through Composer. Edit your project's composer.json file to require devdojo/dribbble., (*2)
"require": {
"devdojo/dribbble": "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\Dribbble\DribbbleServiceProvider',
That's it! You're all set to go., (*5)
Here's an example of how to get the most popular shots and display them on the screen., (*6)
@foreach($List->shots as $shot)
<img src="{{ $shot->image_url }}" /><br />
@endforeach
For further info on using the dribble API, be sure to checkout: http://dribbble.com/api, (*7)
Hope you enjoy :), (*8)