Installation
pecl install simple_kafka_client
For PHP7:
apk add php7-pecl-simple-kafka-client --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/
For PHP8:
apk add php8-pecl-simple-kafka-client --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/
You can find the DLLs on PECL as well. If you experience an error similar to this:
The procedure entry point rd_kafka_abort_transaction could not be located in the dynamic library librdkafka.dll
- Most likely you have an outdated version of
librdkakain use. Note thatlibrdkaka.dllneeds to be in thePATH.
putting it in the ext/ directory does not make it available. Be sure to overwrite any previous versions. - This can also happen if an old version of
librdkafka.dllis packaged during the PECL build.
You can download newer versions of thelibrdkafka.dllhere
You can find the DLLs in theruntimessub-folder.
git clone https://github.com/php-kafka/php-simple-kafka-client.git
cd php-simple-kafka-client
phpize && ./configure && make -j5 all && make install
In your php/conf.d folder add a simple_kafka_client.ini with the following:
extension=simple_kafka_client.so