Official PHP SDK for integrating with SphereMall Product. Official documentation
You can install the package manually or by adding it to your composer.json:
{
"require": {
"spheremall/ms-client": "^1.0"
}
}
Pass in the configuration to the client:
$client = new Client([
'gatewayUrl' => 'API_GATEWAY_URL',
'clientId' => 'API_CLIENT_ID',
'secretKey' => 'API_SECRET_KEY'
]);