承接 gennadyx/php-shop-logistics.ru-api 相关项目开发

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

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

gennadyx/php-shop-logistics.ru-api

Composer 安装命令:

composer require gennadyx/php-shop-logistics.ru-api

包简介

php-shop-logistics.ru-api composer package

README 文档

README

Latest Version on Packagist Software License Build Status Total Downloads

Coverage Status Sensiolabs_Medal Quality Score

##php-shop-logistics.ru-api PHP oop wrapper for shop-logistics.ru remote functions

Install

Via Composer

$ composer require gennadyx/php-shop-logistics.ru-api

Usage

use Gennadyx\ShopLogisticsRu\ApiClientBuilder;
use Gennadyx\ShopLogisticsRu\Environment;
use Gennadyx\ShopLogisticsRu\Api\Dictionary;
use Http\Message\MessageFactory\DiactorosMessageFactory;
use Http\Message\StreamFactory\DiactorosStreamFactory;

$client = ApiClientBuilder::create()
    ->withRequestFactory(new DiactorosMessageFactory())
    ->withStreamFactory(new DiactorosStreamFactory())
    ->withEncoder(function ($data) {
        $xml = '';
        //your logic here
        return $xml;
    })
    ->withEnvironment(Environment::PROD())
    ->withKey('your_key')
    ->build();

//or just build with default parameters
$client = ApiClientBuilder::create()->build();

/** @var Dictionary $dictionary */
$dictionary = $client->api('dictionary');

//call remote function
$cities = $dictionary->getCities();
//or
$states = $client->dictionary->getStates();//array

//if any error (http exception or other)
$metro = $client->dictionary->getMetro();
//$metro instance of \Gennadyx\ShopLogisticsRu\Response\Error with error code

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dev@gennadyx.tech instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固