library silex-soundcloud
Silex SoundCloud Provider
mrprompt/silex-soundcloud
Silex SoundCloud Provider
- Friday, October 21, 2016
- by mrprompt
- Repository
- 1 Watchers
- 2 Stars
- 219 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
SoundCloud Silex Provider
, (*1)
Install
composer require mrprompt/silex-soundcloud
Usage
use SilexFriends\SoundCloud\SoundCloud;
use Silex\Application;
$client_id = getenv('SOUNDCLOUD_CLIENT_ID');
$client_secret = getenv('SOUNDCLOUD_CLIENT_SECRET');
$app = new Application;
$app->register(new SoundCloud($client_id, $client_secret));
/* @var $url string */
$url = $app['request']->get('url');
/* @var $sound array */
$sound = $app['soundcloud']($url);
var_dump($sound);
Tests
./vendor/bin/phpunit
License
MIT, (*2)
dev-master
9999999-dev
Silex SoundCloud Provider
Sources
Download
MIT
The Requires
The Development Requires