daryl / php-aplayer
Aplayer 的 PHP 包。
1.2.0
2017-05-20 15:15 UTC
Requires
- php: >=5.6.0
- metowolf/meting: ^1.3
Requires (Dev)
- phpunit/phpunit: ^6.1@dev
This package is not auto-updated.
Last update: 2024-09-25 02:22:39 UTC
README
Aplayer 的 PHP 包。http://aplayer.js.org
感谢 @metowolf 及其 Meting
目前只提供网易云音乐,其他即将推出。
如何使用
composer require daryl/php-aplayer
$aplayer = new Aplayer\Aplayer(); $aplayer->out();
方法
Aplayer::setSong($songId); //Id of the netease music, default 22817183, one of my favirote music. Aplayer::setPlaylist($playlistId); //Id of the netease music, default 476998713, one of my favirote playlist. Aplayer::setSongType('song' or 'playlist') //To choose song or playlist. Aplayer::setElementId($elementId) //To set the id of the aplayer element, default player1.
其他都是 Aplayer 中的选项设置器。
TODO
- 网易云音乐
- 网易云音乐播放列表
- 一页中的多个元素
享受它吧!