PHPackages                             kg-bot/laravel-tikfinity-webhooks - 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. kg-bot/laravel-tikfinity-webhooks

ActiveLibrary[API Development](/categories/api)

kg-bot/laravel-tikfinity-webhooks
=================================

A Laravel package for TikFinity (TikTok LIVE) webhooks

v1.0(11mo ago)010MITPHPPHP ^8.1

Since May 25Pushed 11mo agoCompare

[ Source](https://github.com/kg-bot/laravel-tikfinity-webhooks)[ Packagist](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[ Fund](https://rebrand.ly/laravel-tikfinity-webhooks)[ RSS](/packages/kg-bot-laravel-tikfinity-webhooks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e993201475655cb363735782f2594a8d03203bcef2e36812df0b4ed60a91fb31/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f762f737461626c65)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[![Total Downloads](https://camo.githubusercontent.com/05fa4e44a46f69e5ffae6f78e834300acbe7812f9483c609c665a9a93ac299c5/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f646f776e6c6f616473)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[![Latest Unstable Version](https://camo.githubusercontent.com/46258d063dd24c973001671096f04f3a32bff81fc2b22220b7858090f8810ac4/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f762f756e737461626c65)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[![License](https://camo.githubusercontent.com/df29eb80e6fa67d017e4d4e4deb79587d625e3711752ff46664a384eb08a1e92/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f6c6963656e7365)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[![Monthly Downloads](https://camo.githubusercontent.com/f2340008f7e0401678dfa1950093fe0e28c10f7b78fc622f3b49b9420e81772f/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f642f6d6f6e74686c79)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)[![Daily Downloads](https://camo.githubusercontent.com/107b35a847bfbc22495b2499672bb72d36f69154ed151a1779997ffedd1a8605/68747470733a2f2f706f7365722e707567782e6f72672f6b672d626f742f6c61726176656c2d74696b66696e6974792d776562686f6f6b732f642f6461696c79)](https://packagist.org/packages/kg-bot/laravel-tikfinity-webhooks)

[![](https://camo.githubusercontent.com/a36899167fca22992a607b62c7749ba925d790197ea89c3696e2d36e82043ee4/68747470733a2f2f696d672e6275796d6561636f666665652e636f6d2f627574746f6e2d6170692f3f746578743d427579206d652061206265657226656d6f6a693df09f8dba26736c75673d4b67426f7426627574746f6e5f636f6c6f75723d35463746464626666f6e745f636f6c6f75723d66666666666626666f6e745f66616d696c793d436f6f6b6965266f75746c696e655f636f6c6f75723d30303030303026636f666665655f636f6c6f75723d464644443030)](https://www.buymeacoffee.com/KgBot)

TikFinity Webhooks
==================

[](#tikfinity-webhooks)

This package provides a set of webhooks for TikFinity, allowing you to easily integrate TikTok LIVE events into your application.

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

[](#installation)

You can install the package via Composer:

```
composer require kg-bot/laravel-tikfinity-webhooks
```

Configuration
-------------

[](#configuration)

After installing the package, you need to publish the configuration file:

```
php artisan vendor:publish --tag="tikfinity-webhooks-config
```

This will create a `tikfinity-webhooks.php` file in your `config` directory. You can customize the configuration as needed.

Migrations
----------

[](#migrations)

You can publish the migrations using the following command:

```
php artisan vendor:publish --tag="tikfinity-webhooks-migrations"
```

Routes
------

[](#routes)

The package provides a set of routes for handling TikTok webhooks. You can find the routes in the `routes/web.php` file. You can customize the routes as needed.

Usage
-----

[](#usage)

You can use the webhooks in your application to handle TikTok LIVE Gift and LIVE comment events.

To handle the events, you should configure the pipes in your `tikfinity-webhooks.php` configuration file. The package provides a set of example pipes that you can use to handle the events. You can also create your own pipes to handle the events as needed.

Profile
-------

[](#profile)

You can use the `KgBot\TikfinityWebhooks\Models\TikTokProfile` model to save TikTok profile information.

Example
-------

[](#example)

You can use the package to handle TikTok LIVE Gift and LIVE comment events. Here is an example of how to handle a LIVE Gift event:

### Create a Pipe

[](#create-a-pipe)

You can create a pipe to handle the LIVE Gift event. Here is an example of a pipe that verifies if the event is a gift event:

```
use Closure;
use KgBot\TikFinityWebhooks\Contracts\PipeContract;
use KgBot\TikFinityWebhooks\DTO\WebhookData;

final class VerifyGiftWebhook implements PipeContract
{
    /**
     * @throws EventNotAllowed
     */
    public function handle(WebhookData $webhookData, Closure $next): mixed
    {
        if(!$webhookData->isGiftEvent()) {
            throw new EventNotAllowed('Event is not a gift event');
        }

        return $next($webhookData);
    }
}
```

Each pipe should implement the `PipeContract` interface and define the `handle` method. The `handle` method receives the `WebhookData` object and a closure to pass the data to.

### Register the Pipe

[](#register-the-pipe)

You can register the pipe for each event in the `tikfinity-webhooks.php` configuration file by overwriting the `pipes` array. Here is an example of how to register the `VerifyGiftWebhook` pipe for the `gift` event:

```
return [
    'pipes' => [
        'gift' => [
            VerifyGiftWebhook::class,
            // Other pipes can be added here
        ],
    ],
];
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit/).

Contributing
------------

[](#contributing)

If you want to contribute to this package, feel free to open a pull request or create an issue. Your contributions are welcome!

Support
-------

[](#support)

If you have any questions or need support, you can open an issue on the GitHub repository or contact me directly.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance51

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc19f6b72f23a75f24611f209d21719ca1e68427e476875669b7d43904300c80?d=identicon)[kg-bot](/maintainers/kg-bot)

---

Top Contributors

[![kg-bot](https://avatars.githubusercontent.com/u/5282920?v=4)](https://github.com/kg-bot "kg-bot (5 commits)")

---

Tags

laravelwebhooksliveTikTok tikfinity

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/kg-bot-laravel-tikfinity-webhooks/health.svg)

```
[![Health](https://phpackages.com/badges/kg-bot-laravel-tikfinity-webhooks/health.svg)](https://phpackages.com/packages/kg-bot-laravel-tikfinity-webhooks)
```

###  Alternatives

[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[dan/shopify

Shopify API with Laravel integrations using latest Guzzle.

2325.6k](/packages/dan-shopify)

PHPackages © 2026

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