PHPackages                             idealo/php-rdkafka-ffi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. idealo/php-rdkafka-ffi

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

idealo/php-rdkafka-ffi
======================

PHP Kafka client - binding librdkafka via FFI

v0.6.0(1y ago)82108.6k↓27.6%5[1 issues](https://github.com/idealo/php-rdkafka-ffi/issues)2Apache-2.0PHPPHP ^7.4 || ^8.0CI failing

Since Dec 6Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/idealo/php-rdkafka-ffi)[ Packagist](https://packagist.org/packages/idealo/php-rdkafka-ffi)[ RSS](/packages/idealo-php-rdkafka-ffi/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (6)Dependencies (9)Versions (8)Used By (2)

> **⚠️ Status:** *This project is no longer maintained.*

[![](docs/img/php-rdkafka.svg)](docs/img/php-rdkafka.svg) PHP Kafka Client
==========================================================================

[](#-php-kafka-client)

[![Build](https://github.com/idealo/php-rdkafka-ffi/workflows/Build/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest)[![Extension Compatibility](https://github.com/idealo/php-rdkafka-ffi/workflows/Extension%20Compatibility/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-extension-compatibility)[![Build macOS](https://github.com/idealo/php-rdkafka-ffi/workflows/Build%20macOS/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-macos)[![Build Windows](https://github.com/idealo/php-rdkafka-ffi/workflows/Build%20Windows/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-windows)

[![Test Coverage](https://camo.githubusercontent.com/40d4dcceb6fc26f128de87ba539940dc286c1b1acdda1ea6ead9bf43e944de7f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39656535356362353538376662663634646561382f746573745f636f766572616765)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/test_coverage)[![Maintainability](https://camo.githubusercontent.com/cb70c883366dbfd4d25a68be11c16562f7c78141fbffe6f439ecd4efde509bb5/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39656535356362353538376662663634646561382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/maintainability)[![Packagist](https://camo.githubusercontent.com/636c948e3d30fac27180bf692d1ae1f02a9c0f5e8fb2a7e798038094882f36d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696465616c6f2f7068702d72646b61666b612d666669)](https://packagist.org/packages/idealo/php-rdkafka-ffi)

This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim [librdkafka](https://github.com/confluentinc/librdkafka) binding via [FFI](https://www.php.net/manual/en/book.ffi.php).

It supports the same interfaces as the [PHP RdKafka extension](https://github.com/arnaud-lb/php-rdkafka) ^5.0 and ^6.0.

Supported Features
------------------

[](#supported-features)

- Consumer (low and high level)
- Producer (with support for transactional producing)
- Admin Client
- Mock Cluster to simplify integration tests (even with error situations)
- Support for error handling and logging via callbacks

Runtime Requirements
--------------------

[](#runtime-requirements)

- PHP ^7.4 or ^8.0 with extensions FFI enabled
- librdkafka ^1.0.0 or ^2.0.0
- Conflicts: RdKafka extension
- Suggested:
    - zend opcache extension for preloading
    - pcntl extension for faster shutdown in request/response context

Note: From PHP 8.3 onwards, you must disable the stack overflow check by setting `zend.max_allowed_stack_size=-1` in your php.ini. This is necessary because FFI callbacks are executed off the main thread, and the overflow checks do not handle this scenario properly.

Note: Support for macOS and Windows is experimental.

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

[](#installation)

```
composer require idealo/php-rdkafka-ffi

```

Note: Expect breaking changes along all 0.\* pre-releases. This changes may depend on upcoming major releases of the RdKafka extension or improved interfaces for the experimental features like transactional producer, mock cluster and admin client.

Documentation
-------------

[](#documentation)

Changelog
---------

[](#changelog)

See [Changelog](CHANGELOG.md) for details.

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

[](#contributing)

We welcome all kinds of contributions. See the [Contribution guide](CONTRIBUTING.md) for more details.

License
-------

[](#license)

See [License](LICENSE) for details.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance51

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~302 days

Recently: every ~376 days

Total

6

Last Release

524d ago

### Community

Maintainers

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

---

Top Contributors

[![dirx](https://avatars.githubusercontent.com/u/795259?v=4)](https://github.com/dirx "dirx (509 commits)")[![siad007](https://avatars.githubusercontent.com/u/2149445?v=4)](https://github.com/siad007 "siad007 (5 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![kmbremner](https://avatars.githubusercontent.com/u/6079282?v=4)](https://github.com/kmbremner "kmbremner (1 commits)")[![manonworldrepository](https://avatars.githubusercontent.com/u/175624480?v=4)](https://github.com/manonworldrepository "manonworldrepository (1 commits)")

---

Tags

ffikafkalibrdkafkaphpphp-ffiphp74phpclientkafkaffilibrdkafka

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/idealo-php-rdkafka-ffi/health.svg)

```
[![Health](https://phpackages.com/badges/idealo-php-rdkafka-ffi/health.svg)](https://phpackages.com/packages/idealo-php-rdkafka-ffi)
```

###  Alternatives

[nmred/kafka-php

Kafka client for php

1.4k1.7M19](/packages/nmred-kafka-php)[ebics-api/ebics-client-php

PHP library to communicate with bank through EBICS protocol.

6933.4k](/packages/ebics-api-ebics-client-php)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4640.8k](/packages/ismaeltoe-osms)[mshauneu/php-rdkafka-bundle

Integrates php-rdkafka with Symfony2|3

1327.4k](/packages/mshauneu-php-rdkafka-bundle)

PHPackages © 2026

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