定制 shopgate/connect-integration-sdk-php 二次开发

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

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

shopgate/connect-integration-sdk-php

Composer 安装命令:

composer require shopgate/connect-integration-sdk-php

包简介

A PHP framework supporting the integration with the Shopgate Connect Platform.

README 文档

README

Build Status Coverage Status License GitHub (pre-)release

The Shopgate Connect Integration SDK is a compilation of classes to manage the communication between your shop system and Shopgate Connect.

Create a developer account at https://developer.shopgate.com

Requirements

  • PHP 5.6 and above

Installation

composer require shopgate/connect-integration-sdk-php

Or download and unzip from the releases page.

Migration to 2.x

If you're upgrading from 1.x to 2.x, read the migration guide.

Quick Start

Order creation example (see Order API docs for full request spec):

<?php
use Shopgate\ConnectSdk\ShopgateSdk;

$order = [
    'localeCode' => 'de-de',
    'currencyCode' => 'EUR',
    'addressSequences' => [...],
    'primaryBillToAddressSequenceIndex' => 0,
    'lineItems' => [...],
    'subTotal' => 109.99,
    'total' => 115.89,
    'submitDate' => '2019-09-02T09:02:57.733Z',
    'imported' => true
];

$config = [
    'merchantCode'  => 'MERCHANT_CODE',
    'clientId'      => 'my-client',
    'clientSecret'  => '*******',
    'username'      => 'my.address@my-domain.com',
    'password'      => '*******',
    'env'           => 'pg' // Optional. "dev", "pg" or empty (= production)
];

$sgSdk = new ShopgateSdk($config);

try {
    $response = $sgSdk->getOrderService()->addOrders([$order]);
    var_dump($resonse);
} catch (\Exception $e) {
    var_dump($e);
}

Configuration Parameters

  • clientId (string) - oAuth2 client ID
  • clientSecret (string) - oAuth2 client secret
  • merchantCode (string) - merchant code provided to you upon registration
  • username - (string) - the email address of the user called "Api Credentials" at Shopgate Next Admin
  • password - (string) - the password of the user called "Api Credentials" at Shopgate Next Admin
  • env (string, default: production) - one of "dev", "staging", "production"

Changelog

See CHANGELOG.md file for more information.

Contributing

See CONTRIBUTING.md file for more information.

About Shopgate

Shopgate is the leading mobile commerce platform.

License

The Shopgate Connect Integration SDK is available under the Apache License, Version 2.0.

See the LICENSE.md file for more information.

Advanced

"baseUri" Configuration

For testing against an echo service the baseUri config can be overridden. It defaults to https://{service}.shopgate{env}.io/{version}/merchants/{merchantCode}/, supporting template variables:

  • service - the service name, different for each request
  • env - the Shopgate environment-dependent domain suffix; this will automatically be replaced with one of "dev", "pg" (staging) or "" (production)
  • version - the API version, may be different for each request
  • merchantCode - the merchant code set in the configuration

shopgate/connect-integration-sdk-php 适用场景与选型建议

shopgate/connect-integration-sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.02k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 shopgate/connect-integration-sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 shopgate/connect-integration-sdk-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 shopgate/connect-integration-sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-07-22