music/gigi-music

There is no license information available for the latest version (dev-master) of this package.

get gigi music

dev-master 2017-04-24 08:51 UTC

This package is not auto-updated.

Last update: 2024-05-17 18:07:10 UTC


README

a simple demo to get music of Liangyongqi which is based on metowolf

usage

install

clone the resposity

$ git clone https://github.com/Smiler94/gigi-music.git

install the dependencies

$ composer install

use

require './vendor/autoload.php';
use \Gigi\GigiMusic;

// get a random list
$gigi = new GigiMusic(GigiMusic::GigiMusicType_Random);

$count = 1;

// get detail
print_r($gigi->getFirst($count));

/** output
Array
(
    [0] => Array
        (
            [id] => 255504
            [name] => 凹凸
            [artist] => Array
                (
                    [0] => 梁咏琪
                )

            [pic_id] => 100055558144839
            [url_id] => 255504
            [lyric_id] => 255504
            [source] => netease
            [pic_url] => https://p3.music.126.net/HxsmK2EGztx6SvAW50b-Hg==/100055558144839.jpg?param=300z300&quality=100
            [url] => https://m8.music.126.net/20170424171525/f587bed9cde1411790fafd78937fe303/ymusic/17c4/afe4/ad7d/8ffdae27bb8cdd637a7fccac03494aaa.mp3
        )

)
**/