96qbhy / free-apis
免费的常用 API
0.1.2
2019-07-04 09:32 UTC
Requires
- php: ^7.1
- ext-json: >=1.0
- 96qbhy/exception: ^0.1.2
- 96qbhy/express: ^3.1
- hanson/foundation-sdk: ^3.0
This package is auto-updated.
Last update: 2024-11-04 21:46:03 UTC
README
免费的常用 API
如何安装 ?
$ composer require 96qbhy/free-apis
如何使用 ?
$api = new Qbhy\FreeApis\FreeApis([ 'debug' => true, 'express' => '查快递app key', ]); var_dump($api->express->query('快递单号')); // 查快递 var_dump($api->translation->google('你好', 'en')); // 翻译 var_dump($api->weather->queryWithCityName('广州')); // 天气查询 var_dump($api->ip->getIpInfo('IP地址')); // IP查询