kriss / yii2-express-100
Yii2 快递100接口
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.13
- yiisoft/yii2-httpclient: ^2.0
This package is auto-updated.
Last update: 2024-12-10 15:27:42 UTC
README
Yii2 快递100接口
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kriss/yii2-express-100
or add
"kriss/yii2-express-100": "*"
to the require section of your composer.json
file.
Usage
配置 Component
use kriss\express100\ExpressApi; $config = [ 'components' => [ ExpressApi::COMPONENT_NAME => [ 'class' => ExpressApi::class, // 其他配置参数 ] ] ]
使用
use kriss\express100\ExpressApi; use Yii; Yii::$app->get(ExpressApi::COMPONENT_NAME)->api('快递名称', '快递单号');