appolous/lazada-php-sdk
Lazada PHP SDK for Laravel
This PHP SDK is available to download at https://open.lazada.com
Support Laravel 7.x / 8.x / 9.x / 10.x / 11.x / 12.x / 13.x
Installation
Via Composer
composer require appolous/lazada-php-sdk
How To Use
use Lazada\LazopClient;
use Lazada\LazopRequest;
$lazadaUrl = "https://api.lazada.com.my/rest";
$apiKey = "YOURAPIKEY";
$apiSecret = "YOURAPISECRET";
$lazOp = new LazopClient($lazadaUrl, $apiKey, $apiSecret);
$lazRequest = new LazopRequest('/category/tree/get', 'GET');
// Request Params
$lazRequest->addApiParam($key, $param);
// Upload files
$lazRequest->addFileParam('image', file_get_contents($file));
// Process API
$response = $lazOp->execute($lazRequest, $token); // JSON Response
You can find the required parameters here: https://open.lazada.com/apps/doc/api
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.7 | ^7.3| | ^7.0| | MIT | |
| 1.6 | ^7.3| | ^7.0| | MIT | |
| 1.5 | ^7.3| | ^7.0| | MIT | |
| 1.4 | ^7.3| | ^7.0| | MIT | |
| 1.3 | ^7.3| | ^7.0| | MIT | |
| 1.2 | ^7.3| | ^8.0 | MIT | |
| 1.1 | ^8.0.0 | ^8.0 | MIT | |
| 1.0 | ^7.2 | ^8.0 | MIT |