https://github.com/qbhy/free-apis
免费的常用API
https://github.com/qbhy/free-apis
Last synced: 5 months ago
JSON representation
免费的常用API
- Host: GitHub
- URL: https://github.com/qbhy/free-apis
- Owner: qbhy
- License: mit
- Created: 2019-04-12T09:34:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T09:46:39.000Z (almost 6 years ago)
- Last Synced: 2024-04-13T19:33:03.961Z (about 1 year ago)
- Language: PHP
- Size: 75.2 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# free-apis
免费的常用 API## 如何安装 ?
```bash
$ composer require 96qbhy/free-apis
```## 如何使用 ?
```php$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查询
```[email protected]
[96qbhy/free-apis](https://github.com/qbhy/free-apis)