Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idealo/php-rdkafka-ffi
PHP Kafka client - binding librdkafka via FFI
https://github.com/idealo/php-rdkafka-ffi
ffi kafka librdkafka php php-ffi php74
Last synced: 7 days ago
JSON representation
PHP Kafka client - binding librdkafka via FFI
- Host: GitHub
- URL: https://github.com/idealo/php-rdkafka-ffi
- Owner: idealo
- License: apache-2.0
- Created: 2019-01-13T14:48:08.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T10:49:38.000Z (about 2 months ago)
- Last Synced: 2024-12-25T14:57:01.091Z (21 days ago)
- Topics: ffi, kafka, librdkafka, php, php-ffi, php74
- Language: PHP
- Homepage: https://idealo.github.io/php-rdkafka-ffi/
- Size: 4.1 MB
- Stars: 78
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# PHP Kafka Client
[![Build](https://github.com/idealo/php-rdkafka-ffi/workflows/Build/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest)
[![Extension Compatibility](https://github.com/idealo/php-rdkafka-ffi/workflows/Extension%20Compatibility/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-extension-compatibility)
[![Build macOS](https://github.com/idealo/php-rdkafka-ffi/workflows/Build%20macOS/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-macos)
[![Build Windows](https://github.com/idealo/php-rdkafka-ffi/workflows/Build%20Windows/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest-windows)[![Test Coverage](https://api.codeclimate.com/v1/badges/9ee55cb5587fbf64dea8/test_coverage)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/9ee55cb5587fbf64dea8/maintainability)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/maintainability)
[![Packagist](https://img.shields.io/packagist/v/idealo/php-rdkafka-ffi)](https://packagist.org/packages/idealo/php-rdkafka-ffi)This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim [librdkafka](https://github.com/confluentinc/librdkafka) binding via [FFI](https://www.php.net/manual/en/book.ffi.php).
It supports the same interfaces as the [PHP RdKafka extension](https://github.com/arnaud-lb/php-rdkafka) ^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 contextNote: 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.
## Documentationhttps://idealo.github.io/php-rdkafka-ffi/
## Changelog
See [Changelog](CHANGELOG.md) for details.
## Contributing
We welcome all kinds of contributions. See the [Contribution guide](CONTRIBUTING.md) for more details.
## License
See [License](LICENSE) for details.