定制 webit/gls-ade 二次开发

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

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

webit/gls-ade

Composer 安装命令:

composer require webit/gls-ade

包简介

Web-IT GLS-ADE SDK

README 文档

README

The repository provides a client to communicate with GLS SOAP APIs

Installation

Add the webit/gls-ade into composer.json

{
    "require": {
        "webit/gls-ade": "^2.0.0"
    }
}

Usage

use Webit\GlsAde\Model\AdeAccount;
use \Webit\GlsAde\Api\Factory\ApiFactory;

$adeAccount = new AdeAccount('your-login', 'your-password', 'is-test-env' ? true : false);

$apiFactory = ApiFactory::create();

/** @var \Webit\GlsAde\Api\AuthApi $authApi */
$authApi = $apiFactory->createAuthApi();

/** @var \Webit\GlsAde\Api\ConsignmentPrepareApi $consignemntPrepareApi */
$consignemntPrepareApi = $apiFactory->createConsignmentPrepareApi($adeAccount);

/** @var \Webit\GlsAde\Api\MpkApi $mpkApi */
$mpkApi = $apiFactory->createMpkApi($adeAccount);

/** @var \Webit\GlsAde\Api\PickupApi $pickupApi */
$pickupApi = $apiFactory->createPickupApi($adeAccount);

/** @var \Webit\GlsAde\Api\PostalCodeApi $postalCodeApi */
$postalCodeApi = $apiFactory->createPostalCodeApi($adeAccount);

/** @var \Webit\GlsAde\Api\ProfileApi $profileApi */
$profileApi = $apiFactory->createProfileApi($adeAccount);

/** @var \Webit\GlsAde\Api\SenderAddressApi $senderAddressApi */
$senderAddressApi = $apiFactory->createSenderAddressApi($adeAccount);

/** @var \Webit\GlsAde\Api\ServiceApi $serviceApi */
$serviceApi = $apiFactory->createServiceApi($adeAccount);

Running examples

For real life example see examples directory.

cd examples
cp config.php.dist config.php

Set your account details in config.php then run examples

sh php auth.php php mpk.php php post-codes.php php profile.php php sender.php php services.php

Running tests

To run all tests (including real API calls tests), copy phpunit.xml.dist file to phpunit.xml and replace username / password. If you don't do this, API tests will be skipped.

./vendor/bin/phpunit

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固