https://github.com/njasm/yii2-soundcloud
Soundcloud API extension for yii2 framework
https://github.com/njasm/yii2-soundcloud
Last synced: over 1 year ago
JSON representation
Soundcloud API extension for yii2 framework
- Host: GitHub
- URL: https://github.com/njasm/yii2-soundcloud
- Owner: njasm
- License: mit
- Created: 2015-01-29T01:14:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-29T22:08:32.000Z (over 11 years ago)
- Last Synced: 2025-02-13T05:15:52.016Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 130 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```php
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:
```php
echo Yii::$app->soundcloud->getAuthUrl();
```
For further instructions refer to the related [Soundcloud Library](https://github.com/njasm/soundcloud/).
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist njasm/yii2-soundcloud "*"
```
or add
```json
"njasm/yii2-soundcloud": "*"
```
to the require section of your composer.json.