PHP Kafka examples, consumer, producer with and without avro support
This repository has PHP examples for Kafka consumers / producers for:
Checkout these folders to see how to run the examples:
If you wan’t to test / debug something that is closer to your setup,
you can modify the following arguments in docker-compose.yml
:
PHP_IMAGE_TAG: 8.1-cli-alpine3.15
LIBRDKAFKA_VERSION: v1.8.2
PHP_EXTENSION: php-kafka/php-simple-kafka-client
PHP_EXTENSION_VERSION: v0.1.4
Adjust those, to reflect your setup and afterwards run:
docker-compose up --build -d