longlang/phpkafka

A kafka client. Support php-fpm and Swoole.

Maintainers

👁 Yurunsoft

Package info

github.com/swoole/phpkafka

pkg:composer/longlang/phpkafka

Statistics

Installs: 2 640 927

Dependents: 11

Suggesters: 4

Stars: 278

Open Issues: 29

v1.2.5 2023-10-13 01:40 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Apache-2.0 f42bfa7c97b1f2c751e2a956e597b970407faad1

This package is auto-updated.

Last update: 2026-06-29 01:43:53 UTC


README

👁 Latest Version
👁 Php Version
👁 License

Introduction

English | įŽ€äŊ“中文

PHP Kafka client is used in PHP-FPM and Swoole.

The communication protocol is based on the JSON file in Java. PHP Kafka client supports 50 APIs, which might be one that supports the most message types ever.

The produce and the consume of messages are implemented. The component is in developing and testing.

Features

  • Support all 50 APIs
  • Message compression
  • PHP-FPM and Swoole compatible
  • Producer
  • Consumer
  • SASL
  • SSL
  • More features and test cases

Environment

  • PHP >= 7.1
  • Kafka >= 1.0.0
  • Swoole >= 4.5 (optional)

Installation

composer require longlang/phpkafka

Documentation and Examples

Refer to examples for code examples.