dev-master
9999999-deva toolbox for gigi's music
MIT
The Requires
v0.1.0
0.1.0.0a toolbox for gigi's music
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
a toolbox for gigi's music
a composer package,showing how to create an own package., (*1)
this is a tool used to get a random or sequence list of Gigi's songs.it is based on the netease music's api., (*2)
first,install freelancersinchina/gigi-music., (*3)
> composer require freelancersinchina/gigi-music
second,include the autoload function and enjoy using the gigi-music., (*4)
require_once("./vendor/autoload.php");
use Gigi;
// get a random list of songs
$songlist = new GigiMusic(GigiMusic::GigiMusicType_Random);
// or get a sequence list of songs
// $songlist = new GigiMusic(GigiMusic::GigiMusicType_Sequence);
// suppose that we need to get 10 songs
$count = 10;
// get detail infos
$songs = $songlist->getFirst($count);
print_r($songs);
a toolbox for gigi's music
MIT
a toolbox for gigi's music
MIT