PHPackages                             terentev-space/kithook-php-kafka - 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. terentev-space/kithook-php-kafka

ActiveLibrary

terentev-space/kithook-php-kafka
================================

Kafka PHP Client for KitHook

0.1.2(4y ago)07Apache-2.0PHPPHP &gt;=7.1

Since May 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/terentev-space/kithook-php-kafka)[ Packagist](https://packagist.org/packages/terentev-space/kithook-php-kafka)[ Docs](https://github.com/terentev-space/kithook-php-kafka)[ RSS](/packages/terentev-space-kithook-php-kafka/feed)WikiDiscussions master Synced today

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

KitHook PHP Kafka
=================

[](#kithook-php-kafka)

[![Latest Version](https://camo.githubusercontent.com/a04d430e2be730be781c2c75196a6eef75018c9ac4a160c0104e3b253cce39b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746572656e7465762d73706163652f6b6974686f6f6b2d7068702d6b61666b612e7376673f7374796c653d666c61742d737175617265)](https://github.com/terentev-space/kithook-php-kafka/releases)[![Software License](https://camo.githubusercontent.com/effa8235d7eba5e273e8712a2c110b76565138e21b71cdd10ea6082613f07943/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368655f322e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/9d0eea64f91fb6889dfb0d94b7a92e968a1c12de47b1a2b43f1ad33ff0c735c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746572656e7465762d73706163652f6b6974686f6f6b2d7068702d6b61666b612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/terentev-space/kithook-php-kafka)

#### 🚧 Attention: the project is currently under development! 🚧

[](#-attention-the-project-is-currently-under-development-)

**Note:** Before using it, you need to deploy and configure [KitHook](https://github.com/terentev-space/kithook)

This project acts as an extension of [kithook-php](https://github.com/terentev-space/kithook-php) and allows you to use the Kafka queue manager to send messages to [KitHook](https://github.com/terentev-space/kithook)

Install
-------

[](#install)

Via Composer

```
$ composer require terentev-space/kithook-php-kafka
```

Usage
-----

[](#usage)

Data:

```
$yourWebhookUri = 'https://example.com';
$yourWebhookId = 'myId-123';

$yourElseContentType = 'application/xml';

// Json
$yourWebhookJsonData = [
    'anything'
];
// Form
$yourWebhookFormData = [
    'param1' => 'value1',
];
// Query
$yourWebhookQueryData = [
    'param1' => 'value1',
];
// Xml
$yourWebhookXmlData =  'default',
    \KitHookKafka\Client::CONFIG_KAFKA_TOPIC => 'kithook',
];
```

Examples:

```
$client = isset($yourClientConfig) ?
new \KitHookKafka\Client($yourClientConfig) : // Use config
new \KitHookKafka\Client(); // Use env

// Simple HTTP Put Json
$client->sendHttpPutJson($yourWebhookUri, $yourWebhookJsonData, $yourWebhookId);
// Simple HTTP Post Form
$client->sendHttpPostForm($yourWebhookUri, $yourWebhookFormData, $yourWebhookId);
// Simple HTTP Get Query
$client->sendHttpGetEmpty($yourWebhookUri . '?' . http_build_query($yourWebhookQueryData), $yourWebhookId);

// Build
$content = $client->contentBuilder()->makeHttp()
    // OR
    ->withType(\KitHook\Entities\Messages\Contents\QueueHttpMessageContent::TYPE_ELSE)
    ->withData($yourWebhookXmlData)
    ->withFormatForElseType($yourElseContentType)
    // OR
    ->fillElse($yourWebhookXmlData, $yourElseContentType)
    // FINALLY
    ->build();

$message = $client->messageBuilder()->makeHttp()
    // OR
    ->withId($yourWebhookId)
    ->withUri($yourWebhookUri)
    ->withMethod(\KitHook\Entities\Messages\QueueHttpMessage::METHOD_POST)
    ->withContent($content)
    // OR
    ->fillPost($yourWebhookUri, $yourWebhookId, $content, [/* headers */], [/* properties */])
    // OR
    ->fillPost($yourWebhookUri, $yourWebhookId)
    ->makeContent()
    ->fillForm($yourWebhookFormData)
    ->buildFromMessage()
    // FINALLY
    ->build();

$client->send($message);
```

Credits
-------

[](#credits)

- [Ivan Terentev](https://github.com/terentev-space)
- [All Contributors](https://github.com/terentev-space/kithook-php-kafka/contributors)

License
-------

[](#license)

The Apache 2.0 License (Apache-2.0). Please see [License File](LICENSE) for more information.

###  Health Score

19

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

Total

3

Last Release

1767d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4afdc3f257a628f254362fec69d58dc8d6dfe8ecf2b326e845d992f02495a001?d=identicon)[terentev-space](/maintainers/terentev-space)

---

Top Contributors

[![terentev-space](https://avatars.githubusercontent.com/u/26274186?v=4)](https://github.com/terentev-space "terentev-space (14 commits)")

---

Tags

MQwebhookkitkafkakithook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/terentev-space-kithook-php-kafka/health.svg)

```
[![Health](https://phpackages.com/badges/terentev-space-kithook-php-kafka/health.svg)](https://phpackages.com/packages/terentev-space-kithook-php-kafka)
```

###  Alternatives

[nmred/kafka-php

Kafka client for php

1.4k1.7M18](/packages/nmred-kafka-php)[shopify/shopify-api

Shopify API Library for PHP

4604.6M11](/packages/shopify-shopify-api)[koco/messenger-kafka

Symfony Messenger Kafka Transport

911.1M1](/packages/koco-messenger-kafka)

PHPackages © 2026

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