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

ActiveLibrary[API Development](/categories/api)

firesoil/taobao-top-client
==========================

Taobao top client(SDK) for laravel

2.6.1(6y ago)1177MITPHPPHP &gt;=5.4.0

Since Nov 12Pushed 6y agoCompare

[ Source](https://github.com/FireSoil/taobao-top-client)[ Packagist](https://packagist.org/packages/firesoil/taobao-top-client)[ Docs](https://github.com/firesoil/taobao-top-client)[ RSS](/packages/firesoil-taobao-top-client/feed)WikiDiscussions master Synced 2d ago

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

淘宝开放平台 for laravel/lumen
========================

[](#淘宝开放平台-for-laravellumen)

原「淘宝客初级包」合并到了「淘宝客基础API」。
目前当前sdk已包含：

- 淘宝客基础API
- 公共场景
    - (新)订单履行链路监控
    - 获取单笔交易信息
    - 物流基础信息查询
    - (新)用户信息管理包
    - 退款管理包
    - Schema商品发布
    - 聚石塔数据推送
    - 消息服务\_待回收
    - 卖家基础开放
    - 会员平台-分层管理
- 平台基础服务
    - 系统工具
- 消息服务
    - 消息服务
- 发货管理
    - 物流发货
- 订单管理
    - 订单信息查询
    - 订单编辑
- 评价管理
    - 评价信息查询
- 御城河
- 奇门

laravel
-------

[](#laravel)

### 安装

[](#安装)

`composer require firesoil/taobao-top-client`

### 配置

[](#配置)

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

### 示例代码

[](#示例代码)

```
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);
```

lumen
-----

[](#lumen)

### 安装

[](#安装-1)

`composer require firesoil/taobao-top-client`

### 配置

[](#配置-1)

- 手动复制vendor/firesoil/taobao-top-client/config/taobaotop.php到config目录下
- 在bootstrap/app.php下添加

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

- 编辑.env文件，设置appid,appsecret

### 示例代码

[](#示例代码-1)

```
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);
```

Sponsor
-------

[](#sponsor)

[Find This Best](https://www.findthisbest.com)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 63.5% 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 ~50 days

Recently: every ~70 days

Total

11

Last Release

2237d ago

Major Versions

1.0 → 2.02018-11-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12509091?v=4)[wzz](/maintainers/FireSoil)[@FireSoil](https://github.com/FireSoil)

---

Top Contributors

[![orzcc](https://avatars.githubusercontent.com/u/402270?v=4)](https://github.com/orzcc "orzcc (61 commits)")[![juckknife](https://avatars.githubusercontent.com/u/8176468?v=4)](https://github.com/juckknife "juckknife (18 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)")[![kairye](https://avatars.githubusercontent.com/u/25899134?v=4)](https://github.com/kairye "kairye (2 commits)")[![lhq0826](https://avatars.githubusercontent.com/u/19591674?v=4)](https://github.com/lhq0826 "lhq0826 (2 commits)")

---

Tags

apilaravelsdktaobao

### Embed Badge

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

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

###  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)
