Wallogit.com
2017 © Pedro Peláez
Behance API Package for Laravel 4, (*1)
Begin by installing this package through Composer. Edit your project's composer.json file to require devdojo/behance., (*2)
"require": {
"devdojo/behance": "dev-master"
}
Next, update Composer from the Terminal:, (*3)
composer update
Once this operation completes, you'll need to add the service provider. Open app/config/app.php, and add a new item to the providers array., (*4)
'Devdojo\Behance\BehanceServiceProvider',
Finally, you'll need to publish the config file. Add the following command in Terminal., (*5)
php artisan config:publish devdojo/behance
Then open up app/config/packages/devdojo/behance/keys.php and add your Behance Client ID and Client Secret. And that's it! You're all set to go., (*6)
Here's an example of how to get the featured projects from behance., (*7)
print_r(Behance::searchProjects());
For further info on using the Behance API, be sure to checkout: https://github.com/behance/network_api_php, (*8)
Hope you enjoy :), (*9)