Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qbhy/express

简单的快递查询接口。
https://github.com/qbhy/express

Last synced: about 1 month ago
JSON representation

简单的快递查询接口。

Awesome Lists containing this project

README

        

# express
简单的快递查询接口。

## 安装
```
$ composer require 96qbhy/express
```

## 使用

1. 查询快递
```php

require 'vendor/autoload.php';

$express = new \Qbhy\Express\Express('key');

print_r($express->query('快递单号'));
```
> 支持自动判断快递类型和手动指定快递类型,不传第二个参数代表自动判断快递类型。快递单号用字符串!!!
> 申请 key 请前往 http://kdpt.net/contact.html

2. 查询快递类型
```php
$result = Express::queryType('885744925321174309');
print_r($result);
```