PHPackages                             onetech/easy-lazada - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. onetech/easy-lazada

ActiveLibrary[API Development](/categories/api)

onetech/easy-lazada
===================

Package description here.

1.1.1(2y ago)12.9kMITPHP

Since Mar 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/xiaoguo0426/easy-lazada)[ Packagist](https://packagist.org/packages/onetech/easy-lazada)[ RSS](/packages/onetech-easy-lazada/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

 easy-lazada
=============

[](#-easy-lazada-)

 .

Installing
----------

[](#installing)

使用之前，请认真阅读ladaza API 文档 [https://open.lazada.com/doc/doc.htm?spm=a2o9m.11193494.0.0.191e266bRZ7fPZ&amp;nodeId=27493&amp;docId=118729#?nodeId=29586&amp;docId=120248](https://open.lazada.com/doc/doc.htm?spm=a2o9m.11193494.0.0.191e266bRZ7fPZ&nodeId=27493&docId=118729#?nodeId=29586&docId=120248)

```
$ composer require onetech/easy-lazada -vvv
```

Usage
-----

[](#usage)

```
use Onetech\EasyLazada\Lazada;

require 'vendor/autoload.php';

$lazada = new Lazada([
    'region' => 'TH',
    'app_key' => '',
    'app_secret' => '',
    'redirect_uri' => 'https://admin.erp.local',
    'debug' => true,
    'sandbox' => true,
    'log' => [
        'name' => 'foundation',
        'file' => sys_get_temp_dir() . '/foundation.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
    'cache' => new Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir())
]);

//1. 创建授权地址，引导用户进行授权
echo $lazada->oauth->authorizer->create();

//2. 从redirect url中获取code值，去换取access_token等信息
$code = $_GET['code'];
echo $lazada->access_token->setCode($code)->getToken();//创建token

//$lazada->access_token->refresh();
//$lazada->access_token->getToken();
//$lazada->access_token->getRefreshToken();
//$lazada->access_token->delToken();

$order_id = 13800138000;
$res = $lazada->order->getOrder($order_id);
```

TODO
----

[](#todo)

1. 还有部分API还没有对接，PR welcome
2. 上传图片的API还没有对接成功
3. 其他未知问题

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/onetech/easy-lazada/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/onetech/easy-lazada/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~49 days

Total

11

Last Release

1020d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a431b0f260a9143f1a5eecbb283a906f2729834ae80972465916b0f2831d2847?d=identicon)[xiaoguo0426](/maintainers/xiaoguo0426)

---

Top Contributors

[![xiaoguo0426](https://avatars.githubusercontent.com/u/8944962?v=4)](https://github.com/xiaoguo0426 "xiaoguo0426 (9 commits)")

### Embed Badge

![Health badge](/badges/onetech-easy-lazada/health.svg)

```
[![Health](https://phpackages.com/badges/onetech-easy-lazada/health.svg)](https://phpackages.com/packages/onetech-easy-lazada)
```

###  Alternatives

[justmd5/pinduoduo-sdk

拼多多API SDK【拼多多开放平台】.

23514.1k1](/packages/justmd5-pinduoduo-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
