Download the PHP package hferradj/kafka-php without Composer
On this page you can find all versions of the php package hferradj/kafka-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hferradj/kafka-php
More information about hferradj/kafka-php
Files in hferradj/kafka-php
Package kafka-php
Short Description Kafka client for php
License BSD-3-Clause
Homepage http://www.swanlinux.net
Informations about the package kafka-php
Kafka-php
中文文档
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, 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
- Minimum PHP version: 7.1
- Kafka version greater than 0.8
- The consumer module needs kafka broker version greater than 0.9.0
Installation
Add the lib directory to the PHP include_path and use an autoloader like the one in the examples directory (the code follows the PEAR/Zend one-class-per-file convention).
Composer Install
Simply add a dependency nmred/kafka-php
to your project if you use Composer to manage the dependencies of your project.
$ composer require nmred/kafka-php
Here is a minimal example of a composer.json file :
Configuration
Configuration properties are documented in Configuration
Producer
Asynchronous mode
Synchronous mode
Consumer
Low-Level API
Refer Example
QQ Group
Group 1: 531522091 Group 2: 657517955
All versions of kafka-php with dependencies
amphp/amp Version ^2.0.3
lcobucci/clock Version ^1.0
psr/log Version ^1.0