PHPackages                             manbinzheng/easy-doudian - 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. manbinzheng/easy-doudian

ActiveLibrary

manbinzheng/easy-doudian
========================

easy-doudian

144PHP

Since Jun 25Pushed 4y agoCompare

[ Source](https://github.com/manbinzheng/easy-doudian)[ Packagist](https://packagist.org/packages/manbinzheng/easy-doudian)[ RSS](/packages/manbinzheng-easy-doudian/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-easy-doudian
====================

[](#laravel-easy-doudian)

抖店开放平台SDK for Laravel

> QQ：894775625

安装
--

[](#安装)

```
composer require "manbinzheng/easy-doudian"
```

laravel配置
---------

[](#laravel配置)

1. 在应用根目录下的`config/app.php` 找到providers标签，注册 ServiceProvider

```
'providers' => [
    // ...
    ManbinZheng\EasyDouDian\DouDianServiceProvider::class,
]
```

2. 控制台中，执行以下指令，创建配置文件：

```
php artisan vendor:publish --provider="ManbinZheng\EasyDouDian\DouDianServiceProvider"
```

lumen配置
-------

[](#lumen配置)

1. 复制配置文件至config文件夹

```
cp -r vendor/manbinzheng/easy-doudian/src/config ./
```

2. 在bootstrap/app.php中注册config文件和ServiceProvider

```
...

$app->configure('doudian');
$app->register(ManbinZheng\EasyDouDian\DouDianServiceProvider::class);

return $app;
```

配置参数
----

[](#配置参数)

修改应用根目录下的 `config/doudian.php` 配置开放平台的参数。建议将敏感数据放于.env中。

```
return [
    'options' => [
        'default' => [ //默认账号
            'app_id' => env('EASY_DOUDIAN_APP_ID'),
            'app_secret' => env('EASY_DOUDIAN_APP_SECERT'),
        ],
        'defined.account' => [ //多账号配置
            'app_id' => 'YOUR_APP_ID',
            'app_secret' => 'YOUR_APP_SECERT',
        ],
    ]
];
```

使用
--

[](#使用)

先查阅官方文档，获取接口method参数，以及业务参数，业务参数以数组对象传参。
抖店开放平台官方文档：

```
//默认实例获取订单详情
app('doudian')->request('order.detail',['order_id'=>'894775625']);
//多账号实例获取订单详情
app('doudian.defined.account')->request('order.detail',['order_id'=>'894775625']);

//无业务参数只传method参数
app('doudian')->request('shop.brandList');
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity31

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/16011685?v=4)[manbinzheng](/maintainers/manbinzheng)[@manbinzheng](https://github.com/manbinzheng)

### Embed Badge

![Health badge](/badges/manbinzheng-easy-doudian/health.svg)

```
[![Health](https://phpackages.com/badges/manbinzheng-easy-doudian/health.svg)](https://phpackages.com/packages/manbinzheng-easy-doudian)
```

PHPackages © 2026

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