ecotone / kafka
Apache Kafka transport for Ecotone asynchronous messaging and Distributed Bus.
Fund package maintenance!
Requires
- ext-rdkafka: *
- ecotone/ecotone: ~1.309.3
Requires (Dev)
- kwn/php-rdkafka-stubs: ^2.2
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^10.5|^11.0
- psr/container: ^1.1.1|^2.0.1
- wikimedia/composer-merge-plugin: ^2.1
- dev-main / 1.309.3.x-dev
- 1.309.3
- 1.309.2
- 1.309.1
- 1.309.0
- 1.308.0
- 1.307.0
- 1.306.1
- 1.306.0
- 1.305.0
- 1.304.0
- 1.303.0
- 1.302.1
- 1.302.0
- 1.301.0
- 1.300.2
- 1.300.1
- 1.300.0
- 1.299.2
- 1.299.1
- 1.299.0
- 1.298.0
- 1.297.1
- 1.297.0
- 1.296.0
- 1.295.0
- 1.294.1
- 1.294.0
- 1.293.0
- 1.292.0
- 1.291.1
- 1.291.0
- 1.290.2
- 1.290.1
- 1.290.0
- 1.289.0
- 1.288.0
- 1.287.0
- 1.286.1
- 1.286.0
- 1.285.0
- 1.284.0
- 1.283.0
- 1.282.0
- 1.281.2
- 1.281.1
- 1.281.0
- 1.280.0
- 1.279.0
- 1.278.1
- 1.278.0
- 1.277.3
- 1.277.2
- 1.277.1
- 1.277.0
- 1.276.1
- 1.276.0
- 1.275.3
- 1.275.2
- 1.275.1
- 1.275.0
- 1.274.1
- 1.274.0
- 1.273.0
- 1.272.0
- 1.271.0
- 1.270.1
- 1.270.0
- 1.269.1
- 1.269.0
- 1.268.3
- 1.268.2
- 1.268.1
- 1.268.0
- 1.267.0
- 1.267.0-ALPHA1
- 1.266.0
- 1.265.0
- 1.264.0
- 1.263.0
- 1.262.0
- 1.261.1
- 1.261.0
- 1.260.1
- 1.260.0
- 1.259.3
- 1.259.2
- 1.259.1
- 1.259.0
- 1.258.1
- 1.258.0
- 1.257.0
- 1.256.0
- 1.255.0
- 1.254.1
- 1.254.0
- 1.253.0
- 1.252.0
- 1.251.1
- 1.251.0
- 1.250.0
- 1.249.0
- 1.248.2
- 1.248.1
- 1.248.0
- 1.247.0
- 1.246.0
- 1.245.0
- 1.244.3
- 1.244.2
- 1.244.1
- 1.244.0
- 1.243.0
- 1.242.1
- 1.242.0
- 1.241.0
- 1.240.1
- 1.240.0
- 1.239.1
- 1.239.0
- 1.238.0
- 1.237.0
- 1.236.0
This package is auto-updated.
Last update: 2026-04-23 17:38:32 UTC
README
To contribute make use of Ecotone-Dev repository.
Ecotone is the PHP architecture layer that grows with your system — without rewrites.
From #[CommandHandler] on day one, to event sourcing, sagas, outbox, and distributed messaging at scale — one package, same codebase, no forced migrations between growth stages. Declarative PHP 8 attributes on the classes you already have.
Apache Kafka transport
Route #[Asynchronous] handlers to Kafka topics with partition-aware consumers and the same retry, outbox, and dead letter semantics as every other Ecotone transport. Publish from one service and consume in another via the Distributed Bus — switching transports never changes how your handlers or tests are written.
- Partitioned consumers — ordering guarantees per key
- Consumer groups — scale out horizontally
- Distributed Bus compatible — cross-service events and commands
- librdkafka-based — production-proven client
Built on top of librdkafka via the PHP rdkafka extension.
Visit ecotone.tech to learn more.
Works with Symfony, Laravel, or any PSR-11 framework via Ecotone Lite.
Getting started
See the quickstart guide and reference documentation. Read more on the Ecotone Blog.
AI-Ready documentation
Ecotone ships with MCP server, Agentic Skills, and LLMs.txt for any coding agent. See the AI Integration Guide.
Feature requests and issue reporting
Use issue tracking system for new feature request and bugs. Please verify that it's not already reported by someone else.
Contact
If you want to talk or ask questions about Ecotone
Support Ecotone
If you want to help building and improving Ecotone consider becoming a sponsor:
Tags
PHP, Kafka, Apache Kafka, Ecotone, Message Broker, Distributed Messaging, Event Streaming, Event Driven Architecture