idealo/php-rdkafka-ffi
Unmaintained Kafka client for PHP 7.4–8.0 using FFI bindings to librdkafka, compatible with php-rdkafka interfaces. Supports producer (transactions), consumer, admin client, mock cluster for tests, and callback-based error/log handling.
⚠️ Status: This project is no longer maintained.
This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim librdkafka binding via FFI.
It supports the same interfaces as the PHP RdKafka extension ^5.0 and ^6.0.
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.
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.
https://idealo.github.io/php-rdkafka-ffi/
See Changelog for details.
We welcome all kinds of contributions. See the Contribution guide for more details.
See License for details.
How can I help you explore Laravel packages today?