This is a PHP wrapper for the SoundCloud API.
- PHP >=8.1
- Symfony HTTP Client
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);