rdkafka

pecl install rdkafka

Kafka client based on librdkafka

PHP-rdkafka is a stable Kafka client for PHP based on librdkafka

Maintainer

  • Arnaud Le Blanc (lead )

Details

Stars: 1992
Issue openned: 28
Downloads: 4255462
PHP 8.2+ on x86 architecture, no build because the DLLs are not found: api-ms-win-crt-heap-l1-1-0.dll,
api-ms-win-crt-runtime-l1-1-0.dll
4.0.0
5 years ago
Download DLL for processor with 64 bits architecture (x64)
PHP 7.4
Loading...
Download DLL for processor with 32 bits architecture (x86)
PHP 7.4
Loading...
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.
Version 4.0.0 change log

BREAKING CHANGE: Since version 4.0, the client longer polls for network events
at shutdown (during object destructor). This behaviour didn't give enought
control to the user in case of server issue, and could cause the script to
hang while terminating.

Starting from this version, programs MUST now call flush() before shutting
down, otherwise some messages and callbacks may be lost.

## Features

* Added RdKafka\Kafka::offsetsForTimes(), RdKafka\KafkaConsumer::offsetsForTimes() (#238, #270, @nick-zh)
* Added RdKafka\KafkaConsumer::getOffsetPositions() (#244, @nick-zh)
* Added RdKafka\Kafka::purge() (#255, @nick-zh)
* Added RdKafka\Kafka::flush() (#264, @nick-zh)
* Added RdKafka\ConsumerTopic::consumeBatch() (#256, @nick-zh)
* Added RdKafka\Conf::setLogCb() (#253, @nick-zh)
* Added RdKafka\KafkaConsumer::queryWatermarkOffsets() (#271, @nick-zh)
* Added RdKafka\KafkaConsumer::close() (#144, @TiMESPLiNTER)

## Enhancements

* Support block on full producer queue (RD_KAFKA_MSG_F_BLOCK) (#245, @nick-zh)
* Add additional partitioners (#267, @nick-zh)
* Fix phpinfo output (#172, @TiMESPLiNTER)
* Don't poll in destruct anymore (#264, #278, @nick-zh)

## Bugfixes

* Fix segfault, remove Producer::newQueue (#273, @nick-zh)

## General

* Dropping support for librdkafka below 0.11 (#247, @arnaud-lb)
* Update build matrix PHP 7.3 + nightly, librdkafka 1.x + master (#249, @arnaud-lb)
* Deprecating deprecated librdkafka functions (#266, #254, #251, @nick-zh)