PHPackages                             komptip/php-tiktok-sdk - 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. komptip/php-tiktok-sdk

ActiveLibrary[API Development](/categories/api)

komptip/php-tiktok-sdk
======================

PHP sdk for TikTok

v1.1.0(1y ago)85MITPHP

Since May 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Komptip/php-tiktok-sdk)[ Packagist](https://packagist.org/packages/komptip/php-tiktok-sdk)[ RSS](/packages/komptip-php-tiktok-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

PHP TikTok SDK
==============

[](#php-tiktok-sdk)

This package provides an wrapper for TikTok REST API for PHP 8.3 and later

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3

Installation
------------

[](#installation)

In your exist PHP application you can install this package using [Composer](https://getcomposer.org).

```
composer require komptip/php-tiktok-sdk
```

Usage
-----

[](#usage)

Check [documentation](https://github.com/Komptip/php-tiktok-sdk/wiki/Configuration-and-basic-usage) for basic understanding of configuration and usage, and [user authentication](https://github.com/Komptip/php-tiktok-sdk/wiki/User-authorization) for user authentication

Here is a basic example of how to use this package:

```
use Komptip\PhpTiktokSdk\PhpTiktokSdk;
use Komptip\PhpTiktokSdk\AuthorizationScope;
use Komptip\PhpTiktokSdk\UserField;

$tiktok = new PhpTiktokSdk('client_key', 'client_secret');

// Get auth url
$authUrl = $tiktok->createAuthUrl(
    scopes: [AuthorizationScope::UserInfoBasic, AuthorizationScope::UserInfoProfile],
    csrfState: $tiktok->createCsrfState(),
    redirectUri: 'https://example.com/callback'
);

// Get access token
$accessToken = $tiktok->getAccessToken($authorizationCode);

// Get user info
$userInfo = $tiktok->getUserInfo($accessToken['access_token'], [UserField::OpenID, UserField::Displayname]);
```

State of the project
--------------------

[](#state-of-the-project)

This package is in early development stage. Not all endpoints are implemented yet.

- [Login kit](https://developers.tiktok.com/doc/login-kit-overview?enter_method=left_navigation)User authorization **Ready to use**[Documentation](https://github.com/Komptip/php-tiktok-sdk/wiki/User-authorization)
- [Content posting API](https://developers.tiktok.com/doc/content-posting-api-get-started?enter_method=left_navigation)Posting videos and images to user profile **Not implemented yet**
- [Data Portability API](https://developers.tiktok.com/doc/data-portability-api-get-started?enter_method=left_navigation)Getting user data such as activity, comments, etc. **Not implemented yet**
- [Display API](https://developers.tiktok.com/doc/display-api-overview?enter_method=left_navigation)User profile information **Ready to use**[Documentation](https://github.com/Komptip/php-tiktok-sdk/wiki/User-authorization)

License
-------

[](#license)

This package is licensed under the MIT License.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

402d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46002004?v=4)[komptip](/maintainers/Komptip)[@Komptip](https://github.com/Komptip)

---

Top Contributors

[![Komptip](https://avatars.githubusercontent.com/u/46002004?v=4)](https://github.com/Komptip "Komptip (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/komptip-php-tiktok-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/komptip-php-tiktok-sdk/health.svg)](https://phpackages.com/packages/komptip-php-tiktok-sdk)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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