lazada-sellercenter-php
PHP library for the Lazada Seller Center API, based off the official documentation.
Requirements
PHP 5.5 and later.
Composer Installation
You can install the bindings via Composer. Run the following command:
composer require theroyalstudent/lazada-sellercenter-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Getting Started
Simple usage (e.g: migrating an image) looks like this:
$lazada = new Lazada\LazadaSellerCenter('https://api.sellercenter.lazada.sg', 'redacted', 'redacted');
try {
$migratedImage = $lazada->Product()->MigrateImage('http://via.placeholder.com/350x150');
} catch (Exception $e) {
var_dump($e->errors);
}
var_dump($migratedImage);
Advanced usage (e.g: retrieving orders) look like this:
$lazada = new Lazada\LazadaSellerCenter('https://api.sellercenter.lazada.sg', 'redacted', 'redacted');
try {
$orders = $lazada->Order()->GetOrders([
'SortBy' => 'UpdatedBefore',
'SortDirection' => 'asc'
]);
} catch (Exception $e) {
var_dump($e->errors);
}
var_dump($orders)
Documentation
Please see https://lazada-sellercenter.readme.io/docs for up-to-date documentation.
Credits
- @theroyalstudent for the initial work.
- Lazada Seller Center for the API.
Libraries Used:
Licenses
Copyright (C) 2017 Edwin A. edwin@theroyalstudent.com
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
Unported License: http://creativecommons.org/licenses/by-sa/3.0/