Skip to content
forked from swoole/phpkafka

PHP Kafka 客户端,支持 PHP-FPM、Swoole 环境使用。这可能是有史以来支持消息类型最多的 PHP Kafka 客户端,支持全部 50 个 API。

License

Notifications You must be signed in to change notification settings

forkgroup/phpkafka

 
 

Repository files navigation

longlang/phpkafka

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
  • SSL
  • SASL
  • 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.

About

PHP Kafka 客户端,支持 PHP-FPM、Swoole 环境使用。这可能是有史以来支持消息类型最多的 PHP Kafka 客户端,支持全部 50 个 API。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • Dockerfile 0.1%