定制 dbx12/yii2-dhl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dbx12/yii2-dhl

Composer 安装命令:

composer require dbx12/yii2-dhl

包简介

Connect you Yii2 application with the DHL parcel tracking API

README 文档

README

Connect you Yii2 application with the DHL parcel tracking API. This project was created to work with API version 1.1.0.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist dbx12/yii2-dhl "*"

or add

"dbx12/yii2-dhl": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, configure it as component in your config files. You need to register here on the DHL Developer Portal to get an API key for the Shipment Tracking - Unified API. Put the consumer key in your config file as seen below.

return [
    'components' => [
        'dhl' => [
            'class' => \dbx12\dhl_component\DhlComponent::class,
            'consumerKey' => 'consumer-key-here'
        ],
    ],
];

You can than use it as component, for example, if you want to find out about the parcel with the tracking number 00123456789123456789, you would do this:

$shipment = Yii::$app->dhl->getShipment('00123456789123456789');

The return value is basically a \yii\base\Model object, the structure is mostly oriented on the documentation on the documented schema here. Some differences exist due to the inner workings of Yii models.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固