/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

!!! Indexer Microservice version: 2.4.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