dev-master
9999999-devSoundcloud.com API Component for yii2 framework
MIT
The Requires
by Nelson J Morais
api yii2 yii soundcloud yii2-soundcloud
Soundcloud.com API Component for yii2 framework
This extension provides a Soundcloud
API solution for Yii 2., (*1)
To use this extension, simply add the following code in your application configuration:, (*2)
return [ //.... 'components' => [ //... 'soundcloud' => [ 'class' => 'Njasm\Soundcloud\yii2\Soundcloud', 'clientId' => 'YOUR_SOUNDCLOUD_CLIENT_ID', 'clientSecret' => 'YOUR_SOUNDCLOUD_CLIENT_SECRET', 'callbackUrl' => 'YOUR_URL_CALLBACK' ], ], ];
You can then access Soundcloud component as follows:, (*3)
echo Yii::$app->soundcloud->getAuthUrl();
For further instructions refer to the related Soundcloud Library., (*4)
The preferred way to install this extension is through composer., (*5)
Either run, (*6)
php composer.phar require --prefer-dist njasm/yii2-soundcloud "*"
or add, (*7)
"njasm/yii2-soundcloud": "*"
to the require section of your composer.json., (*8)
Soundcloud.com API Component for yii2 framework
MIT
api yii2 yii soundcloud yii2-soundcloud