{"id":29149038,"url":"https://github.com/dirx/php-ffi-librdkafka","last_synced_at":"2025-06-30T23:02:00.570Z","repository":{"id":44610012,"uuid":"165517151","full_name":"idealo/php-rdkafka-ffi","owner":"idealo","description":"PHP Kafka client - binding librdkafka via FFI","archived":false,"fork":false,"pushed_at":"2025-06-15T04:05:58.000Z","size":4549,"stargazers_count":81,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-26T14:06:10.557Z","etag":null,"topics":["ffi","kafka","librdkafka","php","php-ffi","php74"],"latest_commit_sha":null,"homepage":"https://idealo.github.io/php-rdkafka-ffi/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idealo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-13T14:48:08.000Z","updated_at":"2025-04-07T21:38:38.000Z","dependencies_parsed_at":"2024-02-06T12:06:17.254Z","dependency_job_id":"c8641854-4616-4233-9cbc-14508bea4fde","html_url":"https://github.com/idealo/php-rdkafka-ffi","commit_stats":{"total_commits":475,"total_committers":6,"mean_commits":79.16666666666667,"dds":0.05052631578947364,"last_synced_commit":"18d49e21d77da8d5ac37327433a0b44bece36ab6"},"previous_names":["dirx/php-ffi-librdkafka"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/idealo/php-rdkafka-ffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Fphp-rdkafka-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Fphp-rdkafka-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Fphp-rdkafka-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Fphp-rdkafka-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealo","download_url":"https://codeload.github.com/idealo/php-rdkafka-ffi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Fphp-rdkafka-ffi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262863638,"owners_count":23376449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffi","kafka","librdkafka","php","php-ffi","php74"],"created_at":"2025-06-30T23:01:07.072Z","updated_at":"2025-06-30T23:02:00.498Z","avatar_url":"https://github.com/idealo.png","language":"PHP","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# \u003cimg src=\"docs/img/php-rdkafka.svg\" width=\"100\" /\u003e PHP Kafka Client\n\n[![Build](https://github.com/idealo/php-rdkafka-ffi/workflows/Build/badge.svg)](https://github.com/idealo/php-rdkafka-ffi/actions?query=workflow%3Atest)\n[![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)\n[![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)\n[![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)\n\n[![Test Coverage](https://api.codeclimate.com/v1/badges/9ee55cb5587fbf64dea8/test_coverage)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/9ee55cb5587fbf64dea8/maintainability)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/maintainability)\n[![Packagist](https://img.shields.io/packagist/v/idealo/php-rdkafka-ffi)](https://packagist.org/packages/idealo/php-rdkafka-ffi)\n\nThis is a Kafka client library for PHP ^7.4 and ^8.0 with a slim [librdkafka](https://github.com/confluentinc/librdkafka) binding\nvia  [FFI](https://www.php.net/manual/en/book.ffi.php).\n\nIt supports the same interfaces as the [PHP RdKafka extension](https://github.com/arnaud-lb/php-rdkafka) ^5.0 and ^6.0.\n\n## Supported Features\n\n* Consumer (low and high level)\n* Producer (with support for transactional producing)\n* Admin Client\n* Mock Cluster to simplify integration tests (even with error situations)\n* Support for error handling and logging via callbacks\n\n## Runtime Requirements\n\n* PHP ^7.4 or ^8.0 with extensions FFI enabled\n* librdkafka ^1.0.0 or ^2.0.0\n* Conflicts: RdKafka extension\n* Suggested:\n    * zend opcache extension for preloading\n    * pcntl extension for faster shutdown in request/response context\n\nNote: 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\nnecessary because FFI callbacks are executed off the main thread, and the overflow checks do not handle this scenario properly.\n\nNote: Support for macOS and Windows is experimental.\n\n## Installation\n\n    composer require idealo/php-rdkafka-ffi\n\nNote: Expect breaking changes along all 0.* pre-releases.\nThis changes may depend on upcoming major releases of the RdKafka extension or improved interfaces for the experimental features like\ntransactional producer, mock cluster and admin client.\n\n## Documentation\n\nhttps://idealo.github.io/php-rdkafka-ffi/\n\n## Changelog\n\nSee [Changelog](CHANGELOG.md) for details.\n\n## Contributing\n\nWe welcome all kinds of contributions. See the [Contribution guide](CONTRIBUTING.md) for more details.\n\n## License\n\nSee [License](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirx%2Fphp-ffi-librdkafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirx%2Fphp-ffi-librdkafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirx%2Fphp-ffi-librdkafka/lists"}