1. Go to this page and download the library: Download fightbulc/cirrus library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fightbulc / cirrus example snippets
// print the username
echo $userVo->getUsername();
// or lets get all tracks from the user
// and then the title from the first track
$tracksVo = $userVo->getTracksVo();
echo $tracksVo[0]->getTitle();
$clientId = '[YOUR API KEY]';
$userId = 428623;
// get tracks by user id
$userTracksVoMany = \Cirrus\Users\UsersCirrus::init()
->setClientId($clientId)
->setId($userId)
->fetchTracksData();
var_dump($userTracksVoMany);
// or get all followers
$userFollowersVoMany = \Cirrus\Users\UsersCirrus::init()
->setClientId($clientId)
->setId($userId)
->fetchFollowersData();
var_dump($userFollowersVoMany);