Skip to content

mrprompt/Silex-SoundCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoundCloud Silex Provider

Build Status Code Climate Test Coverage Issue Count

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

About

Simple Silex SoundCloud Provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages