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

dev-master 2018-06-12 02:21 UTC

This package is auto-updated.

Last update: 2024-10-10 15:07:52 UTC


README

Yii2 快递100接口

快递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('快递名称', '快递单号');