PHPackages                             mofing/topclient - 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. mofing/topclient

ActiveLibrary[API Development](/categories/api)

mofing/topclient
================

taobao sdk topclient with composer

1.1.4(7y ago)3867↓50%1MITPHPPHP &gt;=5.6

Since Jun 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wcj343169893/topclient)[ Packagist](https://packagist.org/packages/mofing/topclient)[ Docs](https://github.com/wcj343169893/topclient)[ RSS](/packages/mofing-topclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

topclient
=========

[](#topclient)

基于官方taobao-sdk-PHP 改版

安装
--

[](#安装)

```
$ composer install "mofing/topclient":"~1.0"
```

或者修改composer.json

```
{
    "require": {
        "mofing/topclient": "~1.0"
    }
}

```

用法
--

[](#用法)

```
use Taobao\TopClient\Client;
use Taobao\TopClient\Request\WirelessShareTpwdQueryRequest;

//定义错误日志保存目录，如果没定义，则默认是tmp
if (! defined("TOP_SDK_WORK_DIR")) {
    define("TOP_SDK_WORK_DIR", "/tmp/");
}

//初始化客户端(请修改key和secret)
$client = new Client("23825453", "e53453a32e04deb21fdb2b6f9b5150be");
$client->format = "json";

//根据短地址，查询商品详细
$req = new WirelessShareTpwdQueryRequest();
$req->setPasswordContent("【铁工房铸铁炒锅 无涂层铸铁锅31cm胡桃木老式圆底生铁不粘炒菜锅】，復·制这段描述€giUu0D44EZa€后到[表情]淘♂寳♀[表情]");
$result = $client->execute($req);
print_r($result);

//返回值
stdClass Object
(
    [content] => 铁工房铸铁炒锅 无涂层铸铁锅31cm胡桃木老式圆底生铁不粘炒菜锅
    [native_url] => tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&module=h5&h5Url=https%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fut_sk%3D1.VyKm%2Fv0tg5YDAJU%2FHXu4IaDr_21380790_1528358199336.TaoPassword-QQ.1%26id%3D542172501116%26sourceType%3Ditem%26price%3D268%26origin_price%3D1288%26suid%3DC1BA70DB-A9BA-4849-8BAC-9ADCC5A5F7E8%26un%3D4acabd7a0fa2d5773dd3af49e2902fce%26share_crt_v%3D1%26sp_tk%3D4oKsZ2lVdTBENDRFWmHigqw%3D%26spm%3Da211b4.23825453%26visa%3D13a09278fde22a2e%26disablePopup%3Dtrue%26disableSJ%3D1&appkey=23825453&visa=13a09278fde22a2e
    [pic_url] => http://gw.alicdn.com/bao/uploaded/i4/2115474719/TB1sXsmnndYBeNkSmLyXXXfnVXa_!!0-item_pic.jpg
    [price] => 268.00
    [suc] => 1
    [thumb_pic_url] => http://gw.alicdn.com/bao/uploaded/i4/2115474719/TB1sXsmnndYBeNkSmLyXXXfnVXa_!!0-item_pic.jpg_170x170.jpg
    [title] => 淘口令-宝贝
    [url] => https://item.taobao.com/item.htm?ut_sk=1.VyKm/v0tg5YDAJU/HXu4IaDr_21380790_1528358199336.TaoPassword-QQ.1&id=542172501116&sourceType=item&price=268&origin_price=1288&suid=C1BA70DB-A9BA-4849-8BAC-9ADCC5A5F7E8&un=4acabd7a0fa2d5773dd3af49e2902fce&share_crt_v=1&sp_tk=4oKsZ2lVdTBENDRFWmHigqw=&spm=a211b4.23825453&visa=13a09278fde22a2e&disablePopup=true&disableSJ=1
    [request_id] => s7f2g9w6nbol
)
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

6

Last Release

2902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ba50770ab3b983b6876cc5d96fb7915f8f1ff6efeb560de643d7c6948aa8f56?d=identicon)[wcj343169893](/maintainers/wcj343169893)

---

Top Contributors

[![wcj343169893](https://avatars.githubusercontent.com/u/502789?v=4)](https://github.com/wcj343169893 "wcj343169893 (11 commits)")

---

Tags

sdktaobaotopclientmofing

### Embed Badge

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

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

###  Alternatives

[orzcc/taobao-top-client

Taobao top client(SDK) for laravel

11125.9k](/packages/orzcc-taobao-top-client)[wxm/taobao-sdk

淘宝 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

1710.1k](/packages/wxm-taobao-sdk)

PHPackages © 2026

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