PHPackages                             orzcc/taobao-top-client - 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. orzcc/taobao-top-client

ActiveLibrary[API Development](/categories/api)

orzcc/taobao-top-client
=======================

Taobao top client(SDK) for laravel

2.5.2(6y ago)11026.1k↓50%49[1 issues](https://github.com/orzcc/taobao-top-client/issues)MITPHPPHP &gt;=5.4.0

Since Nov 12Pushed 1y ago5 watchersCompare

[ Source](https://github.com/orzcc/taobao-top-client)[ Packagist](https://packagist.org/packages/orzcc/taobao-top-client)[ Docs](https://github.com/orzcc/taobao-top-client)[ RSS](/packages/orzcc-taobao-top-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (10)Used By (0)

Taobao Affiliate API for Laravel/Lumen
======================================

[](#taobao-affiliate-api-for-laravellumen)

The Taobao Affiliate API has been upgraded to version 2.0, merging the "Taobao Affiliate Basic Package" into the "Taobao Affiliate Basic API".

Laravel Integration
-------------------

[](#laravel-integration)

### Installation

[](#installation)

Install the package via Composer:

```
composer require orzcc/taobao-top-client
```

### Configuration

[](#configuration)

1. Add the service provider to the `providers` array in `config/app.php`:

```
Orzcc\TopClient\TopClientServiceProvider::class,
```

2. Add the facade to the `aliases` array in `config/app.php`:

```
'TopClient' => Orzcc\TopClient\Facades\TopClient::class,
```

3. Publish the configuration file:

```
php artisan vendor:publish --provider="Orzcc\TopClient\TopClientServiceProvider"
```

4. Set your `appid` and `appsecret` in the `.env` file:

```
TAOBAO_APP_KEY=your_app_key
TAOBAO_APP_SECRET=your_app_secret

```

### Usage Example

[](#usage-example)

```
use TopClient;
use TopClient\request\TbkItemGetRequest;

$topclient = TopClient::connection();
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,reserve_price,zk_final_price,user_type,provcity,item_url");
$req->setQ('phone');
$req->setSort("tk_total_sales");
$req->setPageNo('1');  // Note: Use string values for correct pagination
$req->setPageSize('40');
$resp = $topclient->execute($req);
dd($resp);
```

Lumen Integration
-----------------

[](#lumen-integration)

### Installation

[](#installation-1)

Install the package via Composer:

```
composer require orzcc/taobao-top-client
```

### Configuration

[](#configuration-1)

1. Manually copy the configuration file:

```
cp vendor/orzcc/taobao-top-client/config/taobaotop.php config/taobaotop.php
```

2. Add the following to `bootstrap/app.php`:

```
if (!class_exists('TopClient')) {
    class_alias('Orzcc\TopClient\Facades\TopClient', 'TopClient');
}
$app->register(Orzcc\TopClient\TopClientServiceProvider::class);
```

3. Set your `appid` and `appsecret` in the `.env` file:

```
TAOBAO_APP_KEY=your_app_key
TAOBAO_APP_SECRET=your_app_secret

```

### Usage Example

[](#usage-example-1)

The usage example for Lumen is the same as for Laravel:

```
use TopClient;
use TopClient\request\TbkItemGetRequest;

$topclient = TopClient::connection();
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,reserve_price,zk_final_price,user_type,provcity,item_url");
$req->setQ('phone');
$req->setSort("tk_total_sales");
$req->setPageNo('1');  // Note: Use string values for correct pagination
$req->setPageSize('40');
$resp = $topclient->execute($req);
dd($resp);
```

Sponsor
-------

[](#sponsor)

This project is sponsored by [SoPicks](https://www.sopicks.com/), a revolutionary fashion discovery platform that aggregates products from multiple online stores, offering a seamless way to find and purchase desired brands all in one place.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62.1% 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 ~30 days

Recently: every ~14 days

Total

9

Last Release

2550d ago

Major Versions

1.0 → 2.02018-11-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fcbc9d87e31e6370d6b5f4913850894ef922c16a5276a55c8d43453e146b6e1?d=identicon)[orzcc](/maintainers/orzcc)

---

Top Contributors

[![orzcc](https://avatars.githubusercontent.com/u/402270?v=4)](https://github.com/orzcc "orzcc (64 commits)")[![juckknife](https://avatars.githubusercontent.com/u/8176468?v=4)](https://github.com/juckknife "juckknife (21 commits)")[![xcaptain](https://avatars.githubusercontent.com/u/4054836?v=4)](https://github.com/xcaptain "xcaptain (7 commits)")[![flutterbest](https://avatars.githubusercontent.com/u/4466086?v=4)](https://github.com/flutterbest "flutterbest (3 commits)")[![jianminLee](https://avatars.githubusercontent.com/u/13827117?v=4)](https://github.com/jianminLee "jianminLee (3 commits)")[![lhq0826](https://avatars.githubusercontent.com/u/19591674?v=4)](https://github.com/lhq0826 "lhq0826 (2 commits)")[![kairye](https://avatars.githubusercontent.com/u/25899134?v=4)](https://github.com/kairye "kairye (2 commits)")[![Littlesqx](https://avatars.githubusercontent.com/u/16516151?v=4)](https://github.com/Littlesqx "Littlesqx (1 commits)")

---

Tags

laravellumentaobaoapilaravelsdktaobao

### Embed Badge

![Health badge](/badges/orzcc-taobao-top-client/health.svg)

```
[![Health](https://phpackages.com/badges/orzcc-taobao-top-client/health.svg)](https://phpackages.com/packages/orzcc-taobao-top-client)
```

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1222.7M9](/packages/resend-resend-laravel)

PHPackages © 2026

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