PHPackages                             wyhv/dataoke - 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. wyhv/dataoke

ActiveLibrary

wyhv/dataoke
============

快速优雅的大淘客SDK,从未如此无与伦比\\n\\nThe fast and elegant Dataoke SDK has never been so unbeatable\\n\\n一个用于大淘客API调用的优秀SDK\\n\\nAn excellent SDK for API calls of Dataoke

01PHP

Since Apr 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Ya-hui/dataoke-sdk)[ Packagist](https://packagist.org/packages/wyhv/dataoke)[ RSS](/packages/wyhv-dataoke/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

dataoke-sdk
===========

[](#dataoke-sdk)

#### 介绍

[](#介绍)

对大淘客api的一层封装

#### 安装教程

[](#安装教程)

```
composer require wyhv/dataoke
```

#### 使用说明

[](#使用说明)

```
use DTK\Client;

// $client = Client::getInstance(APP_KEY, APP_SECRET);

/**
 * 超级分类
 * @link http://www.dataoke.com/kfpt/api-d.html?id=10
 */
//$body = $client->run(new DTK\request\Basic\SuperClassification());

/**
 * 细分类目合集
 * @link http://www.dataoke.com/kfpt/api-d.html?id=68
 */
//$body = $client->run(new \DTK\Request\Original\DetailedCategories(['cid' => 1, 'pageId' => 1, 'pageSize' => 20]));

/**
 * 商品列表
 * @link http://www.dataoke.com/kfpt/api-d.html?id=5
 */
//$body = $client->run(new \DTK\Request\Save\GoodsList(['pageId' => 1, 'cids' => '1']));

/**
 * 单品详情
 * @link http://www.dataoke.com/kfpt/api-d.html?id=8
 */
//$body = $client->run(new \DTK\Request\Save\ItemDetails(['id' => 32578306]));

/**
 * 9.9 包邮精选
 * @link http://www.dataoke.com/kfpt/api-d.html?id=15
 * @var [type]
 */
// $body = $client->run(new \DTK\Request\Characteristic\NineGoodsList(['pageSize' => 20, 'pageId' => 1, 'nineCid' => 1]));

/**
 * 轮播图
 * @link http://www.dataoke.com/kfpt/api-d.html?id=72
 * @var [type]
 */
// $body = $client->run(new \DTK\Request\Characteristic\CarouseList());

/**
 * 联想词
 * @link http://www.dataoke.com/kfpt/api-d.html?id=18
 */
// $body = $client->run(new \DTK\Request\Search\SearchSuggestion(['keyWords' => '裤子', 'type' => 1]));

echo '';

print_r($body);
```

#### 扩展API

[](#扩展api)

```
use DTK\Request\Request;

// 新增相关api  具体参数 看Request 类
class Coupons extends Request
{
    // 通过重写 response方法 可以实现自定义返回信息
    // public function response(array $$data)
    // {

    // }
}

//  使用
$body = $client->run(new Coupons());
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

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

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

PHPackages © 2026

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