https://github.com/appolous/lazada-php-sdk
Lazada PHP SDK for Laravel 12.X
https://github.com/appolous/lazada-php-sdk
laravel lazada php
Last synced: about 1 month ago
JSON representation
Lazada PHP SDK for Laravel 12.X
- Host: GitHub
- URL: https://github.com/appolous/lazada-php-sdk
- Owner: appolous
- License: mit
- Created: 2020-11-16T11:17:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T08:59:14.000Z (over 1 year ago)
- Last Synced: 2025-12-14T09:36:03.756Z (7 months ago)
- Topics: laravel, lazada, php
- Language: PHP
- Homepage: https://open.lazada.com
- Size: 12.7 KB
- Stars: 9
- Watchers: 1
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/appolous/lazada-php-sdk)
[](https://packagist.org/packages/appolous/lazada-php-sdk)
[](LICENSE.md)
[](https://buymeacoffee.com/appolous)
# 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
```php
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
- [Alan Yeong](https://github.com/alanyeong)
- [Ibnu Halim Mustofa](https://github.com/ibnuhalimm)
- [Afiq Sazlan](https://github.com/afiqsazlan)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.