• Stars
    star
    1,704
  • Rank 27,394 (Top 0.6 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🍰 Wow, such a powerful music API framework

Meting

Author Version Downloads Travis License

🍰 Wow, such a powerful music API framework

Introduction

A powerful music API framework to accelerate your development

  • Elegant - Easy to use, a standardized format for all music platforms.
  • Lightweight - A single-file library that's less than 51KB.
  • Powerful - Support various music platforms, including Tencent, NetEase, Xiami, KuGou, Baidu, Kuwo and more.
  • Free - Under MIT license, need I say more?

Requirement

PHP 5.4+ and BCMath, Curl, OpenSSL extension installed.

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require metowolf/meting

Then you can import the class into your application:

use Metowolf\Meting;

$api = new Meting('netease');

$data = $api->format(true)->search('Soldier');

Note: Meting requires BCMath, cURL and OpenSSL extension in order to work.

Quick Start

require 'vendor/autoload.php';
// require 'Meting.php';

use Metowolf\Meting;

// Initialize to netease API
$api = new Meting('netease');

// Use custom cookie (option)
// $api->cookie('paste your cookie');

// Get data
$data = $api->format(true)->search('Soldier', [
    'page' => 1,
    'limit' => 50
]);

echo $data;
// [{"id":35847388,"name":"Hello","artist":["Adele"],"album":"Hello","pic_id":"1407374890649284","url_id":35847388,"lyric_id":35847388,"source":"netease"},{"id":33211676,"name":"Hello","artist":["OMFG"],"album":"Hello",...

// Parse link
$data = $api->format(true)->url(35847388);

echo $data;
// {"url":"http:\/\/...","size":4729252,"br":128}

More usage

Join the Discussion

Related Projects

Author

Meting © metowolf, Released under the MIT License.

Blog @meto · GitHub @metowolf · Twitter @metowolf

More Repositories

1

vCards

📡️ vCards 中国黄页 - 优化 iOS/Android 来电、信息界面体验
JavaScript
4,324
star
2

MetingJS

🍰 A powerful plugin connect APlayer and Meting
JavaScript
1,127
star
3

BilibiliHelper

🌮 B 站自动领瓜子、直播挂机脚本,!!! 非 B 站后台源码 !!!
JavaScript
953
star
4

iplist

📖 IP CIDRs List / IP 地址列表
836
star
5

qqwry.ipdb

🐈️ 纯真数据库 IPIP.net 格式版,Make qqwry.ipdb Great Again!!!
JavaScript
331
star
6

JumpJumpHelper

用 PHP 玩微信跳一跳
PHP
299
star
7

NeteaseCloudMusicApi

网易云音乐API,项目合并至 Meting
PHP
198
star
8

qqwry.dat

纯真 IP 数据库同步仓库
JavaScript
123
star
9

script

some exciting script :P
PHP
117
star
10

docker-lemp

🐳 Docker 快速搭建 LEMP 开发环境
PHP
88
star
11

upimg-cli

🧀 Upload image to public CDN in terminal
JavaScript
81
star
12

mathematica-keygen

wolfram mathematica keygen
JavaScript
79
star
13

TencentMusicApi

QQ 音乐 API,PHP 版
PHP
69
star
14

rime-sogou

📇 聰明的輸入法配聰明的詞庫
JavaScript
38
star
15

smms-cli

Upload images to sm.ms
JavaScript
37
star
16

XiamiMusicAPI

虾米音乐 API,PHP 版
PHP
29
star
17

pipe-demo

从零开始写一个代理
JavaScript
24
star
18

ipdb-API

🎒 Open Source REST API for IP database, includes qqwry/ipipdotnet
JavaScript
24
star
19

hlsjs-upimg-wrapper

The upimg decoder module for hls.js
JavaScript
19
star
20

docker-nginx

🐳 Docker Image packaging for nginx
Dockerfile
19
star
21

ipdb-packer

JavaScript
16
star
22

wsdog

An encrypted proxy service program through websocket
JavaScript
16
star
23

Meting-API

🐳 Meting API 的容器化(WIP)
JavaScript
14
star
24

OneTLS

🐳 OneTLS - A docker compose of TLS-Proxy
Shell
13
star
25

logo.svg

常见站点 Logo 的 svg 资源整理
12
star
26

Surge

Surge Rules
6
star
27

pipe

从零开始写一个代理(生产版)
JavaScript
5
star
28

dev-server

🐳 开发环境容器
Dockerfile
5
star
29

ghost-smms-store

Ghost sm.ms storage module.
JavaScript
4
star
30

Yoga-700

Lenovo Yoga 700 for macOS High Sierra & Sierra
Shell
4
star
31

docker-php

🐳 Docker Image packaging for PHP
Dockerfile
3
star
32

qhimg-cli

JavaScript
3
star
33

ipdb-cli

Query IP address in the terminal
JavaScript
3
star
34

Agreement

软件许可及服务协议
3
star
35

Playground

ACM-ICPC / LeetCode / algorithm
C++
2
star
36

docker-version

A simple Docker tagging and publishing tool
JavaScript
1
star
37

docker-frp

Dockerfile
1
star
38

koa-router-semver

🍌 Semver Version Router middleware for Koa.
JavaScript
1
star