Teakowa / Octo

A composer package to simple use music service API.

Home Page:https://packagist.org/packages/teakowa/octo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Octo

A composer package to simple use music service API.

Travis (.org) StyleCI PHP from Packagist Packagist Version LICENSE LICENSE 996.icu

Feature

We have supported the following music service providers:

  • Kugou
  • Tencent

Installation

composer require teakowa/octo

Usage

use Teakowa\Octo\Adapter\Headers;
use Teakowa\Octo\Adapter\Guzzle as Adapter;
use Teakowa\Octo\Provider\Kugou;
use Teakowa\Octo\Provider\Tencent;

$adapter = new Adapter(new Headers());
$data    = new API($adapter);
$kugou   = new Kugou($adapter);
$tencent = new Tencent($adapter);

Kugou

$kugou->artist($id)->info();
$kugou->artist($id)->pic();
$kugou->artist($id)->fans();
$kugou->song($hash)->info();
$kugou->song($hash)->special();

Tencent

$tencent->artist($id)->info();
$tencent->album($mid)->pic();
$tencent->song($mid)->info();

LICENSE

The code in this repository, unless otherwise noted, is under the terms of both the Anti 996 License and the Apache License (Version 2.0).

About

A composer package to simple use music service API.

https://packagist.org/packages/teakowa/octo

License:Other


Languages

Language:PHP 98.7%Language:Makefile 1.3%