koco/messenger-kafka
Kafka transport for Symfony Messenger that enables PHP applications to publish and consume messages via Apache Kafka. Plugs into Messenger’s transport system for async workloads, consumer groups, and configurable serialization.
Adopt when:
Look elsewhere when:
php-rdkafka directly and accept the extra wiring.php-rdkafka behind a small internal adapter, will be lower friction than importing Messenger.To executives — one paragraph:
Our PHP services can't currently participate in the event platform the rest of engineering has standardized on, which forces us into bespoke integrations and duplicated data pipelines. This is a small, MIT-licensed adapter that closes that gap at roughly days of integration effort instead of weeks of custom build. It's cheap optionality: we wrap it behind our own interface so it stays replaceable, and it commits us to nothing about Kafka itself. The tradeoff is maturity — the project has a single maintainer and effectively no downstream users — so we treat it as a fork-ready component rather than a vendor dependency.
To engineering leads — the practical read:
Success criteria to commit to up front: consumer lag monitored and alerting, a documented DLQ and replay runbook, p99 publish latency within the existing queue SLO, and zero handler code aware of Kafka specifics. If those aren't achievable cheaply, the decision was really "adopt Kafka more deeply," and should be re-scoped as such rather than smuggled in as a library choice.
How can I help you explore Laravel packages today?