承接 idealo/php-rdkafka-ffi 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

idealo/php-rdkafka-ffi

最新稳定版本:v0.6.0

Composer 安装命令:

composer require idealo/php-rdkafka-ffi

包简介

PHP Kafka client - binding librdkafka via FFI

README 文档

README

⚠️ Status: This project is no longer maintained.

PHP Kafka Client

Build Extension Compatibility Build macOS Build Windows

Test Coverage Maintainability Packagist

This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim librdkafka binding via FFI.

It supports the same interfaces as the PHP RdKafka extension ^5.0 and ^6.0.

Supported Features

  • Consumer (low and high level)
  • Producer (with support for transactional producing)
  • Admin Client
  • Mock Cluster to simplify integration tests (even with error situations)
  • Support for error handling and logging via callbacks

Runtime Requirements

  • PHP ^7.4 or ^8.0 with extensions FFI enabled
  • librdkafka ^1.0.0 or ^2.0.0
  • Conflicts: RdKafka extension
  • Suggested:
    • zend opcache extension for preloading
    • pcntl extension for faster shutdown in request/response context

Note: From PHP 8.3 onwards, you must disable the stack overflow check by setting zend.max_allowed_stack_size=-1 in your php.ini. This is necessary because FFI callbacks are executed off the main thread, and the overflow checks do not handle this scenario properly.

Note: Support for macOS and Windows is experimental.

Installation

composer require idealo/php-rdkafka-ffi

Note: Expect breaking changes along all 0.* pre-releases. This changes may depend on upcoming major releases of the RdKafka extension or improved interfaces for the experimental features like transactional producer, mock cluster and admin client.

Documentation

https://idealo.github.io/php-rdkafka-ffi/

Changelog

See Changelog for details.

Contributing

We welcome all kinds of contributions. See the Contribution guide for more details.

License

See License for details.

统计信息

  • 总下载量: 84.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 82
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 1

GitHub 信息

  • Stars: 82
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-05-28