Soundcloud API Service Provider For Laravel 5
The package can be installed via Composer by requiring the "njasm/laravel5-soundcloud": "dev-master" package in your project's composer.json.
{
"require": {
"njasm/laravel5-soundcloud": "dev-master"
},
"minimum-stability": "dev"
}Next you need to add the service provider to app/config/app.php.
'providers' => array(
// ...
'Njasm\Laravel\Soundcloud\SoundcloudProvider',
)Laravel 5 has a new file that contains all third party services app/config/services.php.
Add your client_id and client_secret and callback_url.
// ...
'soundcloud' => [
'client_id' => 'CLIENT_ID_HERE',
'client_secret' => 'CLIENT_SECRET_HERE',
'callback_url' => 'CALLBACK_URL_HERE',
],Access your Soundcloud object by requesting it to your Application
$soundcloud = $app->make('Soundcloud');
echo $soundcloud->getAuthUrl();