PHPackages                             toptbk/toptbk - 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. toptbk/toptbk

ActiveLibrary[API Development](/categories/api)

toptbk/toptbk
=============

Taobao top client(SDK) for laravel

1.0.1(5y ago)038MITPHPPHP &gt;=5.6.0

Since Dec 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zhangdeze/toptbk)[ Packagist](https://packagist.org/packages/toptbk/toptbk)[ Docs](https://github.com/zhangdeze/toptbk)[ RSS](/packages/toptbk-toptbk/feed)WikiDiscussions main Synced 1mo ago

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

Taobao top SDK for laravel/lumen
================================

[](#taobao-top-sdk-for-laravellumen)

### 安装

[](#安装)

`composer require toptbk/toptbk`

### 配置

[](#配置)

- 在config/app.php中的providers数组中添加`Wangma\TopClient\TopClientServiceProvider::class,`
- 在config/app.php中的aliases数组中添加`'TopClient' => Wangma\TopClient\Facades\TopClient::class,`
- 执行 `php artisan vendor:publish --provider="Wangma\TopClient\TopClientServiceProvider"` 生成配置文件
- 编辑.env文件，设置appid,appsecret

### 示例代码

[](#示例代码)

```
php
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('手机');
$req->setSort("tk_total_sales");
$req->setPageNo('1'); // 实验后发现必需用字符串的数字才能正确分页
$req->setPageSize('40');
$resp = $topclient->execute($req);
dd($resp);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~0 days

Total

2

Last Release

1964d ago

### Community

Maintainers

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

---

Top Contributors

[![zhangdeze](https://avatars.githubusercontent.com/u/24518823?v=4)](https://github.com/zhangdeze "zhangdeze (6 commits)")

---

Tags

apilaravelsdktaobao

### Embed Badge

![Health badge](/badges/toptbk-toptbk/health.svg)

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

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[orzcc/taobao-top-client

Taobao top client(SDK) for laravel

11125.9k](/packages/orzcc-taobao-top-client)[missael-anda/laravel-whatsapp

A Whatsapp Business Cloud API wrapper for Laravel.

677.5k](/packages/missael-anda-laravel-whatsapp)

PHPackages © 2026

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