Download the PHP package ecomphp/lazada-php without Composer
On this page you can find all versions of the php package ecomphp/lazada-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ecomphp/lazada-php
More information about ecomphp/lazada-php
Files in ecomphp/lazada-php
Package lazada-php
Short Description A powerful, lightweight, and developer-friendly Lazada API PHP SDK designed to integrate Lazada Open Platform into vanilla PHP applications, Laravel, or Symfony projects.
License Apache-2.0
Informations about the package lazada-php
Lazada API PHP SDK โ Modern PHP Client for Lazada Open Platform
A powerful, lightweight, and developer-friendly Lazada API PHP SDK designed to integrate Lazada Open Platform into vanilla PHP applications, Laravel, or Symfony projects.
Easily manage Lazada OAuth authentication, automate access token generation, refresh tokens, sync products, fetch orders, and call seller APIs with minimal configuration.
๐ฆ Installation
Install the Lazada PHP Client via Composer:
๐ ๏ธ Configuration & Setup
Initialize the Lazada Client using your app credentials provided by the Lazada Open Platform Console:
The SDK supports Lazada regions: vn, sg, my, th, ph, and id.
๐ Lazada API OAuth Authentication
The SDK provides a dedicated Auth class to handle Lazada's OAuth authorization flow, access tokens, and refresh tokens.
Step 1: Create the Authentication Request URL
Generate the authorization redirect URL for the seller to grant permissions:
Step 2: Handle Redirect Callback & Fetch Access Token
Once authorized, Lazada redirects the user back to your callback URL with an authorization code. Exchange it for your API tokens:
Step 3: Set Authorized Seller Credentials
To make authorized calls on behalf of a specific seller, attach the access token and region to your client instance:
๐ Refreshing Expired Access Tokens
Lazada access tokens expire. Automate token renewal using your persistent refresh_token:
๐ Lazada API Usage Examples
Note: A valid
access_tokenand sellerregionare required to interact with seller-level data.
1. Get Product List
Fetch product information from your Lazada store:
2. Get Product Item
Retrieve a single product by Lazada item ID:
3. Get Order List & Order Items
Retrieve recent orders and their order items:
4. Update Order Status to Ready to Ship
Set order items as ready to ship:
๐งฉ Available API Resources
The client exposes Lazada API groups as resource properties, including:
SystemSellerOrderFinanceProductProductReviewStoreDecorationMediaCenterFlexicomboSellerVoucherFreeShippingReturnAndRefundFulfillmentLogisticLazadaLogisticsWalletSponsoredSolutionsServiceMarketLazLiveContent
Example:
๐งช Testing
Run the test suite with Composer:
๐ค Contributing
Contributions, feature suggestions, and bug reports for the ecomphp/lazada-php client are highly appreciated. Feel free to open issues or submit Pull Requests!
๐ License
This project is open-source software licensed under the Apache License 2.0.