alcohol/phpsoundcloud

SoundCloud API wrapper

4.0.0 2015-06-03 07:22 UTC

README

A client written in PHP for SoundCloud's API.

Build Status License

Installing

Either install directly from command line using composer:

$ composer require "alcohol/phpsoundcloud:~4.0"

or manually include it as a dependency in your composer.json:

{
    "require": {
        "alcohol/phpsoundcloud": "~4.0"
    }
}

Using

<?php

use Alcohol\SoundCloud\Client;

$parameters = [
    'client_id' => 'yourId',
    'client_secret' => 'yourSecret',                // optional, but required
    'redirect_uri' => 'http://domain.tld/redirect'  // for retrieving oauth token
];

$soundcloud = new Client($parameters);
$soundcloud->login($username, $password);

$stream = $soundcloud->getStream();

// see class for further documentation

Contributing

Feel free to submit a pull request or create an issue.

License

Alcohol\SoundCloud is licensed under the MIT license.