A simple PHP client library for Netease Cloud Music. Used in WooMai Bot V2.
PHP 8.0 (64bit) or later
composer install woomai/netease-cloud-music ^1.0
<?php
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()));
It's simple and easy to read. Please checkout the source code.
MIT