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

ActiveLibrary

xzz-mifan/dataoke
=================

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

v1.1.1(5y ago)215MITPHPPHP &gt;=7.0.0

Since May 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xzz-mifan/sdk-dataoke)[ Packagist](https://packagist.org/packages/xzz-mifan/dataoke)[ Docs](https://github.com/xzz-mifan/sdk-dataoke)[ RSS](/packages/xzz-mifan-dataoke/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)DependenciesVersions (9)Used By (0)

大淘客(DaTaoKe)SDK
===============

[](#大淘客dataokesdk)

### 简介

[](#简介)

快速优雅的大淘客SDK,从未如此无与伦比 一个用于大淘客API调用的优秀SDK

The fast and elegant Dataoke SDK has never been so unbeatable An excellent SDK for API calls of Dataoke

### 下载 of 安装

[](#下载-of-安装)

> Composer

```
composer require xzz-mifan/dataoke

```

> GIT

```
git clone https://github.com/xzz-mifan/sdk-dataoke.git

```

> 普通

```
https://github.com/xzz-mifan/sdk-dataoke.git

```

### 使用教程

[](#使用教程)

> 默认配置

```
Config.php \DTK\Config
static $default = [
    'appKey'         => 'xxxxx', // 默认大淘客appKey
    'appSecret'      => 'xxxxx', // 默认大淘客appSecret
    'cacheDirectory' => './temp/DOFileCacheStorage/', // 缓存默认路径 需要自己配置
    'cachetime'      => 300, // 默认缓存时间
];

```

> 使用实例

```
use DTK\request\basic\PrivilegeLinkReq;
use DTK\request\original\TbTopicListReq;
use DTK\request\search\SuggestionReq;

$client = new \DTK\Client();

/* 入库更新API-商品列表 */
$goodsListReq = new DTK\request\save\GoodsListReq();
$goodsListReq->setPageId(1);

// 第一种
$result = DTK\client\Save::static()->getGoodsList($goodsListReq);
var_dump($result);

// 第二种
$result = $client->getGoodsList($goodsListReq);
var_dump($result);

/* 基础功能API-高效转链 */
$privilegeLinkReq = new PrivilegeLinkReq();
$privilegeLinkReq->setGoodsId('607454770461');

// 第一种
$result = \DTK\client\Basic::static()->getPrivilegeLink($privilegeLinkReq);
var_dump($result);

// 第二种
$result = $client->getPrivilegeLink($privilegeLinkReq);
var_dump($result);

/* 搜索相关API-联想词 */
$suggestionReq = new SuggestionReq();
$suggestionReq->setKeyWords('洗衣');
$suggestionReq->setType(1);

// 第一种
$result = \DTK\client\Search::static()->getSuggestion($suggestionReq);
var_dump($result);

// 第二种
$result = $client->getSuggestion($suggestionReq);
var_dump($result);

/* 特色栏目API-官方活动推广 */
$tbTopicListReq = new TbTopicListReq();
$tbTopicListReq->setPageId(1);

// 第一种
$result         = \DTK\client\Original::static()->getTbTopicList($tbTopicListReq);
var_dump($result);

// 第二种
$result = $client->getTbTopicList($tbTopicListReq);
var_dump($result);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~12 days

Total

8

Last Release

2003d ago

Major Versions

v0.0.1 → v1.0.0.202005152020-05-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/14bdacf80d53e11802690b475b48c51117e767244a75522d6968734c97989461?d=identicon)[867342143](/maintainers/867342143)

---

Top Contributors

[![xzz-mifan](https://avatars.githubusercontent.com/u/33416213?v=4)](https://github.com/xzz-mifan "xzz-mifan (25 commits)")

---

Tags

dataokephpsdkdataokedtk

### Embed Badge

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

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

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

416300.1M4](/packages/aws-aws-crt-php)[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.4k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

233.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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