Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qbhy/express
简单的快递查询接口。
https://github.com/qbhy/express
Last synced: about 1 month ago
JSON representation
简单的快递查询接口。
- Host: GitHub
- URL: https://github.com/qbhy/express
- Owner: qbhy
- Created: 2017-07-18T06:59:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T15:28:07.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T23:22:07.386Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 18
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express
简单的快递查询接口。## 安装
```
$ composer require 96qbhy/express
```## 使用
1. 查询快递
```phprequire 'vendor/autoload.php';
$express = new \Qbhy\Express\Express('key');
print_r($express->query('快递单号'));
```
> 支持自动判断快递类型和手动指定快递类型,不传第二个参数代表自动判断快递类型。快递单号用字符串!!!
> 申请 key 请前往 http://kdpt.net/contact.html2. 查询快递类型
```php
$result = Express::queryType('885744925321174309');
print_r($result);
```