PHPackages                             qiwanggan/laravel-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. qiwanggan/laravel-doudian

ActiveLibrary

qiwanggan/laravel-doudian
=========================

抖音店铺

01.1k↓83.3%PHP

Since Sep 16Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

抖音小店SDK for Laravel
===================

[](#抖音小店sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cc59733cd638f818a7f2fb929a9e7618a35b3fbdd79acca25df3718b4ec69bc4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6162626f74746f6e2f6c61726176656c2d646f756469616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abbotton/laravel-doudian)[![Build Status](https://camo.githubusercontent.com/5a152f95772f9ed59dbc1fa2b5d8811325a0b8bd648e89bee0f973636f3972b1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6162626f74746f6e2f6c61726176656c2d646f756469616e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/abbotton/laravel-doudian)[![Quality Score](https://camo.githubusercontent.com/bd226effe00879ae9ae2e69779ce6d198c09d389249affe8349feec0ecd38587/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6162626f74746f6e2f6c61726176656c2d646f756469616e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/abbotton/laravel-doudian)[![Total Downloads](https://camo.githubusercontent.com/2ce8eabbc5f0c5aa98169fcea0124a599bac780f8e0ae9a66a7a57256e1cdefc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6162626f74746f6e2f6c61726176656c2d646f756469616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abbotton/laravel-doudian)

安装
--

[](#安装)

1、通过`composer`安装扩展包。

```
composer require qiwanggan/laravel-doudian
```

2、发布配置文件。

```
php artisan vendor:publish --provider="Abbotton\DouDian\DouDianServiceProvider"
```

3、修改`config/doudian.php`中相关配置。

使用
--

[](#使用)

```
$response = app('doudian')->shop->getShopCategory(['cid' => 0]);
dd($response);
```

支持多个授权店铺之间切换，默认不传参为最早授权的店铺

```
app('doudian')->setShopId($shopId)->order->orderDetail(["shop_order_id"=>'5557097346351159555']);
```

### 测试

[](#测试)

```
composer test
```

### 更新记录

[](#更新记录)

查看[CHANGELOG](CHANGELOG.md)获取更详细的更新说明.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![wangyingying828](https://avatars.githubusercontent.com/u/29968531?v=4)](https://github.com/wangyingying828 "wangyingying828 (2 commits)")

### Embed Badge

![Health badge](/badges/qiwanggan-laravel-doudian/health.svg)

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

PHPackages © 2026

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