woomai / netease-cloud-music
1.0.0
2022-06-06 12:02 UTC
Requires
- php-64bit: ^8.0
- ext-bcmath: *
- ext-openssl: *
- guzzlehttp/guzzle: ^7.4.3
- ircmaxell/random-lib: ^1.2
- mlocati/ip-lib: ^1.14
- phpseclib/phpseclib: ~3.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-22 02:21:08 UTC
README
A simple PHP client library for Netease Cloud Music. Used in WooMai Bot V2.
Requirements
PHP 8.0 (64bit) or later
Installation
composer install woomai/netease-cloud-music ^1.0
Example Usage
<?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()));
API
It's simple and easy to read. Please checkout the source code.
Reference
License
MIT