PHPackages                             tengs/douyin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tengs/douyin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tengs/douyin
============

抖音sdk网页接口

v1.0.4(4y ago)136MITPHPPHP ^7.4

Since May 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/teng001/douyin)[ Packagist](https://packagist.org/packages/tengs/douyin)[ RSS](/packages/tengs-douyin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

抖音平台接口sdk
=========

[](#抖音平台接口sdk)

通过composer安装
------------

[](#通过composer安装)

1、配置config-》app.php

```
providers=>[
        \Tengs\Douyin\ServiceProvider::class,
]

```

2、发布配置

```
$ php artisan vendor:publish --provider='Tengs\Douyin\ServiceProvider'
```

3、env

```
DOUYIN_CLIENT_KEY=
DOUYIN_CLIENT_SECRET=

```

4、配置回调地址 config-》douyin.php

callback\_route参数路由名称配置回调

获取授权用户
------

[](#获取授权用户)

```
        $user=Tengs\Douyin\User::make();
        $user->getAccessToken();//获取token
        $user->getOpenId();//获取open_id
        $user->getExpand();//获取用户全部信息

```

创建视频
----

[](#创建视频)

```
        $videoData = [
        'multipart' => [
                [
                    'Content-Disposition' => 'form-data',
                    'Content-Type' => 'video/mp4',
                    'name' => 'video',
                    'filename' => '1.mp4',
                    'contents' => file_get_contents(storage_path('1.mp4'))
                ]
            ]
        ];
        $video_id = '';
        $mediasHandler->setUrl('/video/upload/')->setBody($videoData)->Success(function ($data) use (&$video_id) {
                $video_id = $data['video']['video_id'];
            })->Error(function ($data) {
                //上传失败
            })->video($user);

        (new AuthHandler())->setUrl('/video/create/')
        ->setBody(['video_id' => $video_id])
        ->Success(function ($data) {
            //创建成功
        })->Error(function ($data) {
           //创建失败
        })->post($user);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

1657d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4867409f89ad714d74dc9415920bfd0ad037830f7b378ed13e59ca11b37f32aa?d=identicon)[teng001](/maintainers/teng001)

---

Top Contributors

[![teng001](https://avatars.githubusercontent.com/u/24707733?v=4)](https://github.com/teng001 "teng001 (1 commits)")

### Embed Badge

![Health badge](/badges/tengs-douyin/health.svg)

```
[![Health](https://phpackages.com/badges/tengs-douyin/health.svg)](https://phpackages.com/packages/tengs-douyin)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[bizley/quill

Quill editor implementation for Yii 2.

64133.3k5](/packages/bizley-quill)[ebanx/benjamin

Business rule provider lib for plugin implementations

18155.2k1](/packages/ebanx-benjamin)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

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