PHP code example of aryan-developer / soundclouddownloader
1. Go to this page and download the library: Download aryan-developer/soundclouddownloader 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/ */
aryan-developer / soundclouddownloader example snippets
use Aryan\soundcloud\SoundCloud;
oundCloud();
/**
* Search Music with Query And Get Result
*/
$musics = $soundCloud->searchMusic("tataloo man2");
/**
* Get Music detail from Music ID
*/
var_dump(
$soundCloud->getMusic(5453455)
);
/**
* get Music Detail With SoundCloud Url
*/
var_dump(
$soundCloud->getMusicWithUrl("https://soundcloud.com/bahramnouraei/daagh")
);
/**
* Download with Music ID
*/
$soundCloud->downloadMusic($musics[0]['id']);
bash
php -S localhost:8000