PHPackages                             php-kafka/php-simple-kafka-lib - 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. php-kafka/php-simple-kafka-lib

ActiveLibrary[API Development](/categories/api)

php-kafka/php-simple-kafka-lib
==============================

PHP Simple Kafka library

v0.1.2(4y ago)1045.7k↓42%1BSD-3-ClausePHPPHP ^7.3|^8.0

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/php-kafka/php-simple-kafka-lib)[ Packagist](https://packagist.org/packages/php-kafka/php-simple-kafka-lib)[ GitHub Sponsors](https://github.com/nick-zh)[ RSS](/packages/php-kafka-php-simple-kafka-lib/feed)WikiDiscussions main Synced 1mo ago

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

php-simple-kafka-lib
====================

[](#php-simple-kafka-lib)

[![CircleCI](https://camo.githubusercontent.com/b7b57b9d0ce59dee49ae5b40756588024e2ecea33d2cbeda3556aef4ed541659/68747470733a2f2f636972636c6563692e636f6d2f67682f7068702d6b61666b612f7068702d73696d706c652d6b61666b612d6c69622e7376673f7374796c653d736869656c64)](https://circleci.com/gh/php-kafka/php-simple-kafka-lib)[![Maintainability](https://camo.githubusercontent.com/fdfd85065164a1344893e7e3a23f05f9eee02bb8d7ad6cb75555acb6697a27ba/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31636131656266323639623464343062623532632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/php-kafka/php-simple-kafka-lib/maintainability)[![Test Coverage](https://camo.githubusercontent.com/da7a3893a0d6547f46f1ea63accb347e642b49ce2ae3723f8a9a9927c1bef2cf/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31636131656266323639623464343062623532632f746573745f636f766572616765)](https://codeclimate.com/github/php-kafka/php-simple-kafka-lib/test_coverage)[![Latest Stable Version](https://camo.githubusercontent.com/84828ff671f7c0e474b880954092d4b918a81220b452f808f5ae172e7fd398b9/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6b61666b612f7068702d73696d706c652d6b61666b612d6c69622f762f737461626c65)](https://packagist.org/packages/php-kafka/php-simple-kafka-lib)[![Latest Unstable Version](https://camo.githubusercontent.com/c1f06f2b4ca03be399c65f77a6989ebc49193cfc6772c52ef82cb5ff2f6026a1/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6b61666b612f7068702d73696d706c652d6b61666b612d6c69622f762f756e737461626c65)](https://packagist.org/packages/php-kafka/php-simple-kafka-lib)
[![Join the chat at https://gitter.im/php-kafka/php-simple-kafka-lib](https://camo.githubusercontent.com/95eb05e2ea9df0c3f47813d2cb3e9803a3b54271a7b196e505dc1f7fc41d10d6/68747470733a2f2f6261646765732e6769747465722e696d2f7068702d6b61666b612f7068702d73696d706c652d6b61666b612d6c69622e737667)](https://gitter.im/php-kafka/php-simple-kafka-lib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Description
-----------

[](#description)

This is a library that makes it easier to use Kafka in your PHP project.

This library relies on [php-kafka/php-simple-kafka-client](https://github.com/php-kafka/php-simple-kafka-client)
Avro support relies on [flix-tech/avro-serde-php](https://github.com/flix-tech/avro-serde-php)
The [documentation](https://php-kafka.github.io/php-simple-kafka-client.github.io/) of the php extension,
can help out to understand the internals of this library.

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

[](#requirements)

- php: ^7.3|^8.0
- ext-simple\_kafka\_client: &gt;=0.1.0
- librdkafka: &gt;=1.4.0

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

[](#installation)

```
composer require php-kafka/php-simple-kafka-lib

```

### Enable Avro support

[](#enable-avro-support)

If you need Avro support, run:

```
composer require flix-tech/avro-serde-php "~1.4"

```

Credits
-------

[](#credits)

This library was inspired by [jobcloud/php-kafka-lib](https://github.com/jobcloud/php-kafka-lib) 😍

Examples
--------

[](#examples)

Examples can be found [here](https://github.com/php-kafka/php-kafka-examples/tree/main/src/ext-php-simple-kafka-client/php-simple-kafka-lib)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~67 days

Total

3

Last Release

1714d ago

### Community

Maintainers

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

---

Top Contributors

[![nick-zh](https://avatars.githubusercontent.com/u/3214182?v=4)](https://github.com/nick-zh "nick-zh (6 commits)")

---

Tags

avroconsumerkafkaphpproducerredpandaphpconsumerkafkaproducersimple-kafka-client

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-kafka-php-simple-kafka-lib/health.svg)

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

PHPackages © 2026

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