承接 stp/spsr-shipment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

stp/spsr-shipment

最新稳定版本:v0.1.1

Composer 安装命令:

composer require stp/spsr-shipment

包简介

API for SPSR-EXPRESS shipping

README 文档

README

This project aims to provide a PHP wrapper for SPSR API.

Installation

The preferred way to install is through composer.

Either run

composer require "stp/spsr-shipment *"

or add

{
    "require": {
        "stp/spsr-shipment": "*"
    }
}

to the require section of your composer.json.

Usage

Constructing the Client

use stp\spsr\SpsrApi;

$api = new SpsrApi($login, $password, $icn);

Create request

Every API method has the same variable name as in official documentation.

use stp\spsr\message\GetCitiesMessage,
    stp\spsr\response\City;

$msg = new GetCitiesMessage();
$msg->CityName = 'Москва';

/** @var City[] $cities */
$cities = $api->request($msg);

For more information, see USAGE.md

Implemented API Methods

Pull requests are very welcome!

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-06