PHPackages                             viktorruskai/tiktok-business-api - 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. viktorruskai/tiktok-business-api

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

viktorruskai/tiktok-business-api
================================

TikTok Business API (tiktok.com) OAuth2 Provider for Laravel Socialite

11.5kPHP

Since Nov 3Pushed 3y agoCompare

[ Source](https://github.com/viktorruskai/TikTok-Business-API)[ Packagist](https://packagist.org/packages/viktorruskai/tiktok-business-api)[ RSS](/packages/viktorruskai-tiktok-business-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TikTok Business API for [Socialite Providers](https://github.com/SocialiteProviders)
====================================================================================

[](#tiktok-business-api-for-socialite-providers)

```
composer require viktorruskai/tiktok-business-api
```

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)

```
'tiktok' => [
  'client_id' => env('TIKTOK_CLIENT_ID'),
  'client_secret' => env('TIKTOK_CLIENT_SECRET'),
  'redirect' => env('TIKTOK_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
        \SocialiteProviders\TikTok\TikTokExtendSocialite::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('tiktok')->redirect();
```

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

[](#returned-user-fields)

- id
- nickname
- name
- avatar

Reference
=========

[](#reference)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/273ebfe999362cb2c39be014e5e641833b8a0ab1158ac7cd3c613b2911f14638?d=identicon)[viktorruskai](/maintainers/viktorruskai)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (8 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (3 commits)")[![dwightwatson](https://avatars.githubusercontent.com/u/1100408?v=4)](https://github.com/dwightwatson "dwightwatson (1 commits)")[![tombanksme](https://avatars.githubusercontent.com/u/22574643?v=4)](https://github.com/tombanksme "tombanksme (1 commits)")[![viktorruskai](https://avatars.githubusercontent.com/u/9396295?v=4)](https://github.com/viktorruskai "viktorruskai (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)")

### Embed Badge

![Health badge](/badges/viktorruskai-tiktok-business-api/health.svg)

```
[![Health](https://phpackages.com/badges/viktorruskai-tiktok-business-api/health.svg)](https://phpackages.com/packages/viktorruskai-tiktok-business-api)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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