2017 © Pedro Peláez
 

yii-extension kdniao

快递鸟API for the Yii framework

image

raysoft/kdniao

快递鸟API for the Yii framework

  • Thursday, September 1, 2016
  • by jesonray
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

快递鸟API for Yii 2

官方的文档比较混乱, 提供的demo很原生态, 故制作此模块, (*1)

目前已实现: - [x] 即时查询接口 - [x] 订阅查询接口 - [ ] 在线下单 - [ ] 电子面单 - [x] 单号识别, (*2)

官方文档: (http://www.kdniao.com/api-track), (*3)

需要APP IDAPP KEY, 请注册申请后, 在后台查看(http://www.kdniao.com/UserCenter/Index.aspx), (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

php composer.phar require --dev --prefer-dist raysoft/kdniao

or add, (*7)

"raysoft/kdniao": "*"

to the require section of your composer.json file., (*8)

Usage

Once the extension is installed, simply modify your application configuration as follows:, (*9)

return [
    'components' => [
        'kdniao' => [
            'class' => 'raysoft\kdniao\Kdniao',
            'appId' => '商户ID',
            'appKey' => 'APP Key',
        ],
        // ...
    ],
    // ...
];

You can then access this module in your code:, (*10)

Yii::$app->kdniao...

即时查询接口:, (*11)

Yii::$app->kdniao->track('快递单号', '快递公司代码(不知道可留空)');

单号识别:, (*12)

Yii::$app->kdniao->shipper('快递单号');

The Versions

01/09 2016

dev-master

9999999-dev

快递鸟API for the Yii framework

  Sources   Download

The Requires

 

by Avatar jesonray

01/09 2016

0.1.2

0.1.2.0

快递鸟API for the Yii framework

  Sources   Download

The Requires

 

by Avatar jesonray

30/08 2016

0.1.1

0.1.1.0

快递鸟API for the Yii framework

  Sources   Download

The Requires

 

by Avatar jesonray

30/08 2016

0.1.0

0.1.0.0

快递鸟API for the Yii framework

  Sources   Download

The Requires

 

by Avatar jesonray