njasm/yii2-soundcloud

Soundcloud.com API Component for yii2 framework

Installs: 160

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 2

Open Issues: 0

Type:yii2-extension

dev-master 2015-01-29 22:08 UTC

This package is auto-updated.

Last update: 2024-12-15 13:48:39 UTC


README

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.

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"njasm/yii2-soundcloud": "*"

to the require section of your composer.json.