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. [API Development](/categories/api)
4. /
5. yc-hwc/laravel-tiktok

ActiveLibrary[API Development](/categories/api)

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 2d 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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

865d 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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M989](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M133](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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