php-kafka / php-simple-kafka-lib

PHP Kafka producer / consumer library with PHP Avro support, based on php-simple-kafka-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-simple-kafka-lib

CircleCI Maintainability Test Coverage Latest Stable Version Latest Unstable Version
Join the chat at https://gitter.im/php-kafka/php-simple-kafka-lib

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

About

PHP Kafka producer / consumer library with PHP Avro support, based on php-simple-kafka-client

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 98.0%Language:Makefile 1.0%Language:Dockerfile 0.7%Language:Shell 0.3%