PHP code example of woomai / netease-cloud-music
1. Go to this page and download the library: Download woomai/netease-cloud-music 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/ */
woomai / netease-cloud-music example snippets
use WooMaiLabs\NeteaseCloudMusic\Client;
/**
* @var string $music_u Your MUSIC_U cookie. Can be null.
*/
$client = new Client($music_u);
print_r(json_decode($client->search('Hand in Hand')->getBody()));
print_r(json_decode($client->getSongUrl(1808556594)->getBody()));