pouler / soundcloud-api
PHP Wrapper for the SoundCloud API
Installs: 8 138
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: >=8.1
- ext-json: *
- symfony/http-client: ^5.4|^6.0
- symfony/mime: ^5.4|^6.0
Requires (Dev)
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.0
README
SoundCloud API PHP
This is a PHP wrapper for the SoundCloud API.
Requirements
- PHP >=8.1
- Symfony HTTP Client
Installation
Install it using Composer:
composer require pouler/soundcloud-api
<?php require 'vendor/autoload.php'; $curl = new \Symfony\Component\HttpClient\CurlHttpClient(); $client = new PouleR\SoundCloudAPI\SoundCloudClient($curl); $api = new \PouleR\SoundCloudAPI\SoundCloudAPI($client); $api->setClientId('client.id'); // Get information about given user $api->getUser(123456); // Get information about current usr $api->setAccessToken('access.token'); $api->getUser(); var_dump($result);