PHPackages                             yc-hwc/laravel-tiktok - 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. yc-hwc/laravel-tiktok

ActiveLibrary

yc-hwc/laravel-tiktok
=====================

PHP Tiktok SDK

1.0.11(2y ago)17proprietaryPHPPHP &gt;=8.0

Since Aug 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yc-hwc/laravel-tiktok)[ Packagist](https://packagist.org/packages/yc-hwc/laravel-tiktok)[ RSS](/packages/yc-hwc-laravel-tiktok/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

laravel-tiktok
==============

[](#laravel-tiktok)

tiktok SDK

#### 安装教程

[](#安装教程)

```
composer require yc-hwc/laravel-tiktok

```

### 用法

[](#用法)

---

### tiktok api version=202309

[](#tiktok-api-version202309)

---

#### 配置

[](#配置)

```
    $config = [
        'tiktokUrl'   => '',
        'appKey'      => '',
        'appSecret'   => '',
        'accessToken' => '',
        'shopCipher'  => '',
    ];

    $tiktokClient = \PHPTiktok\V202309\TiktokClient::config($config);

```

#### [获取订单列表](https://partner.tiktokshop.com/docv2/page/650aa8094a0bb702c06df242?external_id=650aa8094a0bb702c06df242#)

[](#获取订单列表)

```
    $config = [
        'tiktokUrl'   => '',
        'appKey'      => '',
        'appSecret'   => '',
        'accessToken' => '',
        'shopCipher'  => '',
    ];
    $tiktokClient = \PHPTiktok\V202309\TiktokClient::config($config);
    $response = $tiktokClient->order()->api('orders')
        ->withBody([
            'order_status' => 'UNPAID',
        ])
        ->withQueryString([
            'page_size' => 1
        ])->port();
    print_r($response);die;

    tips: /开头为绝对路径uri,不是/开头为相对路径uri,建议使用绝对路径uri

```

### tiktok api version &lt; 202309

[](#tiktok-api-version--202309)

---

#### 配置

[](#配置-1)

```
    $config = [
        'tiktokUrl'   => '',
        'appKey'      => '',
        'appSecret'   => '',
        'accessToken' => '',
        'shopId'      => '',
        'shopCipher'  => '',
    ];

    $tiktokSDK = \PHPTiktok\TiktokSDK::config($config);

```

#### [店铺授权](https://developers.tiktok-shops.com/documents/document/234120)

[](#店铺授权)

```
    $config = [
        'tiktokUrl'  => '',
    ];
    $tiktokSDK = \PHPTiktok\TiktokSDK::config($config);

    return [
        'redirectUrl' => $tiktokSDK->oauth()->api('authorize')
            ->withQueryString(array_filter([
                'app_key' => '',
                'state'   => '',
            ]))
            ->fullUrl()
    ];

```

#### [获取订单列表](https://developers.tiktok-shops.com/documents/document/237434)

[](#获取订单列表-1)

```
    $config = [
        'tiktokUrl'   => '',
        'appKey'      => '',
        'appSecret'   => '',
        'accessToken' => '',
        'shopId'      => '',
        'shopCipher'  => '',
    ];
    $tiktokSDK = \PHPTiktok\TiktokSDK::config($config);
    $response = $tiktokSDK->order()->api('/api/orders/search')
        ->withBody([
            'page_size' => 20,
        ])->post();
    print_r($response);

    tips: /开头为绝对路径uri,不是/开头为相对路径uri,建议使用绝对路径uri

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~65 days

Total

12

Last Release

812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3709823f90975a654e458dfe71f91bd70e628f2f225d33e1588810abd67bb2?d=identicon)[huangweijie](/maintainers/huangweijie)

---

Top Contributors

[![huangweijie0308](https://avatars.githubusercontent.com/u/33050752?v=4)](https://github.com/huangweijie0308 "huangweijie0308 (16 commits)")

### Embed Badge

![Health badge](/badges/yc-hwc-laravel-tiktok/health.svg)

```
[![Health](https://phpackages.com/badges/yc-hwc-laravel-tiktok/health.svg)](https://phpackages.com/packages/yc-hwc-laravel-tiktok)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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