Yii 2.0: yii2-soundcloud

Soundcloud.com API extension for yii2

Soundcloud.com API Extension for Yii 2

This extension provides a Soundcloud API solution for Yii 2.

To use this extension, simply add the following code in your application configuration:

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:

echo Yii::$app->soundcloud->getAuthUrl();

For further instructions refer to the related Soundcloud Library Documentation here.

Installation ΒΆ

The preferred way to install this extension is through Composer

Either run

php composer.phar require --prefer-dist njasm/yii2-soundcloud "dev-master"

or add

"njasm/yii2-soundcloud": "dev-master"

to the "require" section of your composer.json.

Total 1 comment

#19256 report it
rups g at 2015/04/29 07:34am
how to install

hi, i tried installing this but i got Class 'Njasm\Soundcloud\Soundcloud' not found $soundcloud = new Soundcloud($clientID, $clientSecret); regards Rups g

Leave a comment

Please to leave your comment.

Create extension
No downloadable files yet