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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lazada-php

Lazada API PHP SDK โ€” Modern PHP Client for Lazada Open Platform

Total Downloads Latest Stable Version Latest Unstable Version License

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_token and seller region are 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:

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.


All versions of lazada-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/guzzle Version ^7.5
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ecomphp/lazada-php contains the following files

Loading the files please wait ...