PHPackages                             jhchan314/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jhchan314/douyin

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jhchan314/douyin
================

Douyin (douyin.com) OAuth2 Provider for Laravel Socialite

v1.4(3y ago)020[1 PRs](https://github.com/JHChan314/Douyin/pulls)MITPHPPHP ^7.4 || ^8.0

Since Feb 28Pushed 2y agoCompare

[ Source](https://github.com/JHChan314/Douyin)[ Packagist](https://packagist.org/packages/jhchan314/douyin)[ RSS](/packages/jhchan314-douyin/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

TikTok
======

[](#tiktok)

```
composer require jhchan314/douyin
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'douyin' => [
  'client_id' => env('DOUYIN_CLIENT_ID'),
  'client_secret' => env('DOUYIN_CLIENT_SECRET'),
  'redirect' => env('DOUYIN_REDIRECT_URI')
],
```

### Add provider event listener

[](#add-provider-event-listener)

Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \Jhchan314\Douyin\DouyinExtendSocialite::class.'@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('douyin')->redirect();
```

Returned User Fields
====================

[](#returned-user-fields)

- id
- union\_id
- name
- avatar

Reference
=========

[](#reference)

- [TikTok Login Kit](https://developers.tiktok.com/doc/login-kit-web)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

6

Last Release

1218d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a50f9674d2feefc4799f12a5a0ad73e8d858b04d55c58d06ab72c9201097a54?d=identicon)[jhchan314](/maintainers/jhchan314)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (8 commits)")[![JHChan314](https://avatars.githubusercontent.com/u/2276393?v=4)](https://github.com/JHChan314 "JHChan314 (4 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (3 commits)")[![tombanksme](https://avatars.githubusercontent.com/u/22574643?v=4)](https://github.com/tombanksme "tombanksme (1 commits)")[![jesse-davis](https://avatars.githubusercontent.com/u/1972627?v=4)](https://github.com/jesse-davis "jesse-davis (1 commits)")[![Diegslapasteque](https://avatars.githubusercontent.com/u/47917342?v=4)](https://github.com/Diegslapasteque "Diegslapasteque (1 commits)")[![dwightwatson](https://avatars.githubusercontent.com/u/1100408?v=4)](https://github.com/dwightwatson "dwightwatson (1 commits)")

---

Tags

laravelprovideroauthsocialitedouyin

### Embed Badge

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

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

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

629.5M15](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

347.3M25](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

402.0M5](/packages/socialiteproviders-instagram)[socialiteproviders/saml2

SAML2 Service Provider for Laravel Socialite

172.6M5](/packages/socialiteproviders-saml2)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

24110.5k](/packages/kovah-laravel-socialite-oidc)[socialiteproviders/kakao

Kakao OAuth2 Provider for Laravel Socialite

10510.1k5](/packages/socialiteproviders-kakao)

PHPackages © 2026

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