daryl/php-aplayer

A php package of Aplayer.

Installs: 62

Dependents: 0

Suggesters: 0

Security: 0

Stars: 20

Watchers: 1

Forks: 7

Open Issues: 0

pkg:composer/daryl/php-aplayer

1.2.0 2017-05-20 15:15 UTC

This package is not auto-updated.

Last update: 2025-09-24 06:38:33 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

A php package for Aplayer.http://aplayer.js.org

And thank @metowolf with his Meting

Only netease music provided now, others is comming soon

How to use

composer require daryl/php-aplayer
$aplayer = new Aplayer\Aplayer();
$aplayer->out();

Methods

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.

Others are the setters of the option which in Aplayer.

TODO

  • netease music
  • playlist for netease music
  • multi elements in one page

Just enjoy it!