Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freelancersinchina/gigi-music
a composer package,showing how to create an own package.
https://github.com/freelancersinchina/gigi-music
composer gigi php tutorial
Last synced: 19 days ago
JSON representation
a composer package,showing how to create an own package.
- Host: GitHub
- URL: https://github.com/freelancersinchina/gigi-music
- Owner: freelancersinchina
- License: mit
- Created: 2017-04-18T09:09:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T01:59:01.000Z (over 7 years ago)
- Last Synced: 2024-10-09T05:51:31.828Z (29 days ago)
- Topics: composer, gigi, php, tutorial
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gigi-music
a composer package,showing how to create an own package.## what does the package do ?
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.## Usage
first,install freelancersinchina/gigi-music.```
> composer require freelancersinchina/gigi-music
```second,include the autoload function and enjoy using the gigi-music.
```
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);
```