smartjson/laravel-doudian

抖音小店开放平台SDK

Maintainers

Package info

github.com/chensongah/laravel-doudian

pkg:composer/smartjson/laravel-doudian

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

v1.0.0 2022-07-10 09:30 UTC

This package is auto-updated.

Last update: 2026-03-10 17:40:12 UTC


README

安装

1、通过composer安装扩展包。

composer require smartjson/laravel-doudian

2、发布配置文件。

php artisan vendor:publish --provider="SmartJson\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获取更详细的更新说明.

License

The MIT License (MIT). Please see License File for more information.