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.4k↓19%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 2w 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

31

—

LowBetter than 65% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

595d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16116559?v=4)[tb](/maintainers/tb07)[@tb07](https://github.com/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

[laravel/framework

The Laravel Framework.

34.9k556.2M21.5k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/packages/shopware-core)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)

PHPackages © 2026

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