Skip to content
Sergey Kondratovec edited this page Nov 4, 2017 · 12 revisions

SphereMall Gateway PHP SDK

Official PHP SDK for integrating with SphereMall Product. Official documentation

Version 1.0.2

Supported microservices

  • Gateway 1.1.1
  • Product 1.1.0
  • Shop 1.0.1
  • Users 1.0.0

Installation

You can install the package manually or by adding it to your composer.json:

{
  "require": {
      "spheremall/ms-client": "1.0.2"
  }
}

Instantiating the SDK Client:

Pass in the configuration to the client:

$client = new Client([
            'gatewayUrl' => 'API_GATEWAY_URL',
            'clientId'   => 'API_CLIENT_ID',
            'secretKey'  => 'API_SECRET_KEY'
        ]);