php-kafka / php-simple-kafka-lib
PHP Simple Kafka library
Fund package maintenance!
nick-zh
Installs: 39 565
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.3|^8.0
- ext-json: *
- ext-simple_kafka_client: ^0.1
Requires (Dev)
- flix-tech/avro-serde-php: ^1.4
- infection/infection: ^0.22
- johnkary/phpunit-speedtrap: ^3.1
- php-mock/php-mock-phpunit: ^2.6
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.5
- rregeer/phpunit-coverage-check: ^0.3.1
- squizlabs/php_codesniffer: ^3.5.4
Suggests
- flix-tech/avro-serde-php: Is needed for Avro support
Conflicts
- ext-rdkafka: *
- jobcloud/php-kafka-lib: *
README
Description
This is a library that makes it easier to use Kafka in your PHP project.
This library relies on php-kafka/php-simple-kafka-client
Avro support relies on flix-tech/avro-serde-php
The documentation of the php extension,
can help out to understand the internals of this library.
Requirements
- php: ^7.3|^8.0
- ext-simple_kafka_client: >=0.1.0
- librdkafka: >=1.4.0
Installation
composer require php-kafka/php-simple-kafka-lib
Enable Avro support
If you need Avro support, run:
composer require flix-tech/avro-serde-php "~1.4"
Credits
This library was inspired by jobcloud/php-kafka-lib 😍
Examples
Examples can be found here