PHPackages                             tb07/dou-dian - 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. tb07/dou-dian

ActiveLibrary[API Development](/categories/api)

tb07/dou-dian
=============

工具型抖店开放平台SDK

1.1.6(1y ago)05.0k↓16.7%PHPPHP &gt;=7.2

Since Jun 20Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (7)Versions (18)Used By (0)

open-doudian
============

[](#open-doudian)

安装 - install
------------

[](#安装---install)

```
$ composer require tb07/doudian
```

使用 - usage
----------

[](#使用---usage)

```
require 'vendor/autoload.php';

$app = new Tb07\DouDian\DouDian([
            'debug' => true,
            'app_key' => 'your app key',
            'app_secret' => 'your app secret',
            'service_id' => 'your service id'
]);

// 创建授权
$app->auth->generateAuthUrl('https://www.test.com/authorization');

// 部分API没有封装成具体方法，你也可以自行调用 request 方法
$app->http->request('请求方式','方法', ['参数'=> '值'],'授权凭证');
```

测试 - tests
----------

[](#测试---tests)

1. 复制 phpunit.xml 配置文件 ```
    $ cp example.phpunit.xml phpunit.xml
    ```
2. 修改配置文件环境变量部分 ```

    ```
3. 执行测试用例 ```
    $ vendor/bin/phpunit
    ```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance40

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Recently: every ~99 days

Total

17

Last Release

504d ago

### Community

Maintainers

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

---

Top Contributors

[![tb07](https://avatars.githubusercontent.com/u/16116559?v=4)](https://github.com/tb07 "tb07 (1 commits)")

---

Tags

sdkopen-apidouyinDoudian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tb07-dou-dian/health.svg)

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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