PHPackages                             g4197/kafka-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. g4197/kafka-php

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

g4197/kafka-php
===============

Kafka client for php

v0.0.3(2y ago)0881Apache-2.0PHPPHP &gt;=8.0

Since Jun 30Pushed 2y agoCompare

[ Source](https://github.com/g41797/kafka-php)[ Packagist](https://packagist.org/packages/g4197/kafka-php)[ Docs](http://www.swanlinux.net)[ RSS](/packages/g4197-kafka-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (11)Versions (4)Used By (1)

Kafka-php
=========

[](#kafka-php)

[![tests](https://github.com/g41797/kafka-php/actions/workflows/tests.yml/badge.svg)](https://github.com/g41797/kafka-php/actions/workflows/tests.yml)

Forked from [kafka-php](https://github.com/weiboad/kafka-php).

Reason of fork

- non-compatible libraries
- old PHP version(7.1)

Kafka-php is a pure PHP kafka client that currently supports greater than 0.8.x version of Kafka, this project v0.2.x and v0.1.x are incompatible if using the original v0.1.x You can refer to the document [Kafka PHP v0.1.x Document](https://github.com/weiboad/kafka-php/blob/v0.1.6/README.md), but it is recommended to switch to v0.2.x . v0.2.x use PHP asynchronous implementation and kafka broker interaction, more stable than v0.1.x efficient, because the use of PHP language so do not compile any expansion can be used to reduce the access and maintenance costs

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

[](#requirements)

- Minimum PHP version: 8.0
- Kafka version greater than 0.8
- The consumer module needs kafka broker version greater than 0.9.0

Installation
------------

[](#installation)

The package could be installed with composer:

```
composer require g41797/kafka-php
```

Configuration
-------------

[](#configuration)

Configuration properties are documented in [Configuration](docs/Configure.md)

Producer
--------

[](#producer)

### Asynchronous mode

[](#asynchronous-mode)

```
