khanhicetea/lazada-php-sdk

A Lazada PHP SDK

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/khanhicetea/lazada-php-sdk

1.2 2022-03-06 03:49 UTC

This package is auto-updated.

Last update: 2025-10-06 12:02:44 UTC


README

Lazada PHP SDK

Why ?

  • Lazada official SDK is bad code (no tests, raw CURL implementations, no packagist package)
  • Has 2 errors :
    • LazopClient line 114, "no varriable named reponse"
    • addApiParam in LazopRequest (use json_decode instead of json_encode)
  • Remove default error handler so developer can assigned new error handler he want
$client = LazopClient(....)
$client->errorHandler = function($requestUrl, $errorCode, $responseTxt) {
    // implement your error handler here
};

NO GUARANTEE !!! I just fixed what I can !