/PHP-MS-Client

SphereMall API client for SphereMall GateWay

Primary LanguagePHPMIT LicenseMIT

SphereMall Gateway PHP SDK

Official PHP SDK for integrating with SphereMall Product. Official documentation

Version 1.0.34

Changelog 1.0.34

Supported microservices

  • Gateway 1.1.1
  • Products 1.1.0
  • Shop 1.0.1
  • Users 1.0.0
  • Grapher 1.0.0

Installation

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

{
  "require": {
      "spheremall/ms-client": "^1.0"
  }
}

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'
        ]);

Using the client with base Resources functionality