wang-tech-commits / kuaidi100-api
快递100物流快递查询
1.0.2.20210518_beta
2021-05-18 06:40 UTC
Requires
- php: >=7.1.3
- laravel/framework: *
- overtrue/easy-sms: ^1.1
This package is not auto-updated.
Last update: 2025-04-03 00:12:05 UTC
README
快递100API Laravel框架下使用
1.安装
composer require wang-tech-commits/kuaidi100-api
2.初始化
php artisan vendor:publish --provider="MrwangTc\Kuaidi100\ServiceProvider"
3.修改配置文件
4.开始使用
1.实时快递查询
<?php use MrwangTc\Kuaidi100\Express\Synquery; $express = new Synquery(); $synQuery = $express->pollQuery('快递公司编码', '快递单号');
2.查询地图轨迹
<?php use MrwangTc\Kuaidi100\Express\Maptrack; $express = new Maptrack(); $mapQuery = $express->mapQuery('快递公司编码', '快递单号');
3.智能单号识别
<?php use MrwangTc\Kuaidi100\Express\Autonumber; $express = new Autonumber(); $auto = $express->auto('快递单号');