PHPackages                             arquivei/php-kafka-consumer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arquivei/php-kafka-consumer

ActiveProject

arquivei/php-kafka-consumer
===========================

A consumer of Kafka in PHP

2.6.3(4mo ago)575.0k—7.4%2[10 issues](https://github.com/arquivei/php-kafka-consumer/issues)[1 PRs](https://github.com/arquivei/php-kafka-consumer/pulls)1MITPHPPHP ~7.2 || ~7.3 || ~7.4 || ^8.0CI failing

Since Apr 1Pushed 4mo ago16 watchersCompare

[ Source](https://github.com/arquivei/php-kafka-consumer)[ Packagist](https://packagist.org/packages/arquivei/php-kafka-consumer)[ RSS](/packages/arquivei-php-kafka-consumer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (46)Used By (1)

php-kafka-consumer
==================

[](#php-kafka-consumer)

[![Latest Stable Version](https://camo.githubusercontent.com/2a1bbd5093be3f254933e3230ab67c1a94ae87512ad44192b2c6d35a853d4dbd/68747470733a2f2f706f7365722e707567782e6f72672f61727175697665692f7068702d6b61666b612d636f6e73756d65722f762f737461626c65)](https://packagist.org/packages/arquivei/php-kafka-consumer) [![Total Downloads](https://camo.githubusercontent.com/d6fa1a15af23724e8b4c47283318be0ebc6673e6687d93d753f394aec433bb66/68747470733a2f2f706f7365722e707567782e6f72672f61727175697665692f7068702d6b61666b612d636f6e73756d65722f646f776e6c6f616473)](https://packagist.org/packages/arquivei/php-kafka-consumer) [![Tests](https://github.com/arquivei/php-kafka-consumer/workflows/Test/badge.svg)](https://github.com/arquivei/php-kafka-consumer/workflows/Test/badge.svg) [![Dependency coverage](https://github.com/arquivei/php-kafka-consumer/workflows/Version%20test/badge.svg)](https://github.com/arquivei/php-kafka-consumer/workflows/Version%20test/badge.svg)

An Apache Kafka consumer in PHP. Subscribe to topics and define callbacks to handle the messages.

Requirements
------------

[](#requirements)

In order to use this library, you'll need the [php-rdkafka](https://github.com/arnaud-lb/php-rdkafka) PECL extension. Please notice that the extension requires the [librdkafka](https://github.com/edenhill/librdkafka) C library.

Minimum requirements:

Dependencyversionlibrdkafkav1.5.3PHP7.4 +ext-rdkafka3.0 +Laravel6 +Install
-------

[](#install)

Using composer:

`composer require arquivei/php-kafka-consumer`

Usage
-----

[](#usage)

```
