Skip to content

PHP Kafka examples, consumer, producer with and without avro support

Notifications You must be signed in to change notification settings

php-kafka/php-kafka-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ec8ffe2 · Jan 8, 2024

History

34 Commits
Apr 11, 2021
Apr 24, 2021
Jan 8, 2024
Apr 11, 2021
Nov 30, 2021

Repository files navigation

PHP Kafka Examples

This repository has PHP examples for Kafka consumers / producers for:

Examples

Checkout these folders to see how to run the examples:

Examples with other compatible systems

Customize to fit your setup

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