PHPackages                             kingpanda-lab/kafka-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kingpanda-lab/kafka-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kingpanda-lab/kafka-client
==========================

A minimal kafka stream client using the components of byjg/message-queue-client

1117PHP

Since Mar 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/KingPanda-Lab/php-kafka-client)[ Packagist](https://packagist.org/packages/kingpanda-lab/kafka-client)[ RSS](/packages/kingpanda-lab-kafka-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

First steps before using the library
====================================

[](#first-steps-before-using-the-library)

This guide explains how to install and configure the **rdkafka** extension in PHP 8.3, which is a required dependency for the **php-kafka-client** library. This setup enables interaction with Apache Kafka in your PHP applications.

1. Install Dependencies
-----------------------

[](#1-install-dependencies)

First, install the **librdkafka** library, which is required for the extension to work:

```
sudo apt install librdkafka-dev
```

2. Install the rdkafka Extension
--------------------------------

[](#2-install-the-rdkafka-extension)

Now, install the **rdkafka** extension using **PECL**:

```
sudo pecl install rdkafka
```

3. Enable the Extension in PHP
------------------------------

[](#3-enable-the-extension-in-php)

After installation, add the extension to PHP by creating a configuration file:

```
echo "extension=rdkafka.so" | sudo tee /etc/php/8.3/mods-available/rdkafka.ini
```

Now, enable the extension with:

```
sudo phpenmod -v 8.3 rdkafka
```

4. Verify if the Extension is Active
------------------------------------

[](#4-verify-if-the-extension-is-active)

To check if **rdkafka** is correctly installed, run:

```
php -m | grep rdkafka
```

If the extension is installed correctly, the command above should display **rdkafka** in the output.

Now your PHP environment is ready to use **php-kafka-client** to interact with **Apache Kafka**! 🚀

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f948fc3ba65d90ecefa3d499258460e12d13b6e94fb3bbd4be635db9f210fcd5?d=identicon)[HilarioJrx](/maintainers/HilarioJrx)

---

Top Contributors

[![HilarioJrx](https://avatars.githubusercontent.com/u/162637964?v=4)](https://github.com/HilarioJrx "HilarioJrx (7 commits)")

### Embed Badge

![Health badge](/badges/kingpanda-lab-kafka-client/health.svg)

```
[![Health](https://phpackages.com/badges/kingpanda-lab-kafka-client/health.svg)](https://phpackages.com/packages/kingpanda-lab-kafka-client)
```

###  Alternatives

[daverandom/exceptional-json

JSON encoding and decoding that throws exceptions on failure

321.4M9](/packages/daverandom-exceptional-json)

PHPackages © 2026

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