NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2157 most downloaded on Packagist
A kafka driver for laravel
Latest stable
v2.13.1
Last release 1 months ago
23 Oct 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
116 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Rethrow the original exception when a manual commit fails by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/405
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.13.0...v2.13.1
Document disabling Telescope for Kafka consumers by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/400
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.12.1...v2.13.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Wait for partitions to be assigned before stopping after the last message by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/399
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.12.0...v2.12.1
Deprecate SeekToCurrentErrorCommitter, as it does not make failed messages be consumed again. Use retryFailedMessages(), stopOnFailure() or a dead let…
stopOnFailure() to consumers, which stops consuming without committing the offset of a failed message when no dead letter queue is configured, so it is consumed again after a restart instead of being lost (#394) by @mateusjunges in #395retryFailedMessages() to consumers, which calls the handler of a failed message again, with an optional backoff, before handling it as failed by @mateusjunges in #396SeekToCurrentErrorCommitter, as it does not make failed messages be consumed again. Use retryFailedMessages(), stopOnFailure() or a dead letter queue instead, by @mateusjunges in #396Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.11.5...v2.12.0
Allow stable laravel/pint releases in require-dev by @mspasov in https://github.com/mateusjunges/laravel-kafka/pull/393
laravel/pint releases in require-dev by @mspasov in https://github.com/mateusjunges/laravel-kafka/pull/393Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.11.4...v2.11.5
Stop consuming only after all assigned partitions reach EOF when using stopAfterLastMessage() by @mateusjunges in https://github.com/mateusjunges/lara
stopAfterLastMessage() by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/387Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.11.3...v2.11.4
Stop exporting dev files in the distributed package by @cosmastech in https://github.com/mateusjunges/laravel-kafka/pull/386
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.11.2...v2.11.3
Fix memory leak in async producer when no flush callback is defined by @hauke-d in #385
Add support for OAUTHBEARER token refresh callback by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/384
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.11.0...v2.11.1
Laravel 13.x Compatibility by @laravel-shift in https://github.com/mateusjunges/laravel-kafka/pull/381
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.10.3...v2.11.0
Add RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART to retryable consumer errors by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/380
RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART to retryable consumer errors by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/380Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.10.2...v2.10.3
Adds a flush callback by @yeknava in https://github.com/mateusjunges/laravel-kafka/pull/378
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.10.1...v2.10.2
Remove @internal annotations by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/379
@internal annotations by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/379Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.10.0...v2.10.1
Introduce ContextAware exceptions by @mwazovzky in https://github.com/mateusjunges/laravel-kafka/pull/375
ContextAware exceptions by @mwazovzky in https://github.com/mateusjunges/laravel-kafka/pull/375Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.9.0...v2.10.0
Remove support for batch messages by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/357
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.8.1...v2.9.0
Add helper for changing rebalancing strategy for consumer groups by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/356
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.8.0...v2.8.1
Add partition discovery and dynamic offset assignment by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/353
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.7.2...v2.8.0
Fix deprecation warnings (PHP 8.4) by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/350
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.7.1...v2.7.2
Fix deprecation warnings by @mateusjunges in `a6e3d42`
a6e3d42Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.7.0..v2.8.0
Fix consuming tombstone messages by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/346
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.6.0...v2.7.0
Resolve memory leak in async Kafka producers preventing connection cleanup by @sash in https://github.com/mateusjunges/laravel-kafka/pull/341
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.5.2...v2.6.0
Fix assertions against messages published asynchronously by @hauke-d in https://github.com/mateusjunges/laravel-kafka/pull/340
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.5.1...v2.5.2
Add rebalance in progress to retryable errors by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/335
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.5.0...v2.5.1
Add php 8.4 to tests workflow by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/324
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.4.2...v2.5.0
Update dependencies by @mateusjunges in `161361d`
161361dFull Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.4.1..v2.5.0
Allow to customize flush settings (retries + timeout) by @sash in https://github.com/mateusjunges/laravel-kafka/pull/317
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.4.0...v2.4.1
Allow to use keys other than strings by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/322
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.3.2...v2.4.0
Prefer new Laravel 11 Cache key by @cragonnyunt in https://github.com/mateusjunges/laravel-kafka/pull/321
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.3.1...v2.3.2
Convert KAFKA_CONSUMER_DEFAULT_TIMEOUT to an integer to avoid type error by @niuf416 in https://github.com/mateusjunges/laravel-kafka/pull/320
KAFKA_CONSUMER_DEFAULT_TIMEOUT to an integer to avoid type error by @niuf416 in https://github.com/mateusjunges/laravel-kafka/pull/320Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.3.0...v2.3.1
Add message id key name to config by @LabbeAramis in https://github.com/mateusjunges/laravel-kafka/pull/315
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.2.0...v2.3.0
Introduce async publishing by @mateusjunges and @sash in https://github.com/mateusjunges/laravel-kafka/pull/312
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.5...v2.2.0
Do not override topic when publishing batch messages by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/313
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.4...v2.1.5
Fix consumer middlewares to work as expected when using the $consumer parameter in message handlers by @sash in https://github.com/mateusjunges/larave
$consumer parameter in message handlers by @sash in https://github.com/mateusjunges/laravel-kafka/pull/304Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.3...v2.1.4
Attempt to fix invalid group id generation by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/305
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.2...v2.1.3
Add int casting to getLastRestart method by @glioympas in https://github.com/mateusjunges/laravel-kafka/pull/298
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.1...v2.1.2
Fixes invalid variable type by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/292
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.1.0...v2.1.1
Properly shut down producers by automatically calling flush. Improve docs by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/283
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.0.4...v2.1.0
Replaced resolve helper with app @SachinBahukhandi in https://github.com/mateusjunges/laravel-kafka/pull/280
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.0.3...v2.0.4
Mirror logic to enable fake builder set the topic name for all the messages at once by @cvairlis in https://github.com/mateusjunges/laravel-kafka/pull
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.0.2...v2.0.3
Fixed type errors caused by commit having an irregular type by @panaiteandreisilviu in https://github.com/mateusjunges/laravel-kafka/pull/276
commit having an irregular type by @panaiteandreisilviu in https://github.com/mateusjunges/laravel-kafka/pull/276Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.0.1...v2.0.2
commit parameter by @panaiteandreisilviu on #276Do not require to specify message topic twice by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/270
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v2.0.0...v2.0.1
Allow to queue message handlers by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/177
KafkaFake for macro accessibility by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/246 and https://github.com/mateusjunges/laravel-kafka/pull/250flush calls by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/252Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.7...v2.0.0
KafkaFake for macro accessibility by @mateusjunges in [#246]https://github.com/mateusjunges/laravel-kafka/pull/246 and (https://github.com/mateusjunges/laravel-kafka/pull/250)flush calls by @mateusjunges in #252Fix invalid group id generation by @huynt57 in https://github.com/mateusjunges/laravel-kafka/pull/318 - original PR by @mateusjunges in https://github
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.12...v1.13.13
Add support for Laravel 11 by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/256
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.11...v1.13.12
Fix passthru of missing methods to root, allowing to store published messages when using macros by @mateusjunges in https://github.com/mateusjunges/la
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.10...v1.13.11
Passthru missing methods on KafkaFake for macro accessibility by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/247
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.9...v1.13.10
Install signal handler for SIGINT (cmd/ctrl + c) by @mateusjunges
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.8...v1.13.9
Fix install issues for laravel v10.x
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.7...v1.13.8
Add timeout feature for consumers, allowing to stop after a given number of seconds by @mihaileu in https://github.com/mateusjunges/laravel-kafka/pull
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.6...v1.13.7
Remove internal annotation from interface
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.5...v1.13.6
Fixed default securityProtocol config by @SergkeiM in https://github.com/mateusjunges/laravel-kafka/pull/215
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.4...v1.13.5
Make Kafka macroable by @lentex in https://github.com/mateusjunges/laravel-kafka/pull/221
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.3...v1.13.4
Update package dependencies by @mateusjunges
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.2...v1.13.3
Use config to define default value of auto-commit by @ebrahimradi in https://github.com/mateusjunges/laravel-kafka/pull/203
auto-commit by @ebrahimradi in https://github.com/mateusjunges/laravel-kafka/pull/203Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.1...v1.13.2
Add the ability to change the cache driver by @BBonnet22 in https://github.com/mateusjunges/laravel-kafka/pull/199
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.13.0...v1.13.1
Fix auto commit by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/186
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.12.3...v1.13.0
Fixes #179 - Allow assertPublishedOnTimes to be used with batch messages by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/180
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.12.2...v1.12.3
Fix contracts marked as internal (Fixes #178)
Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.12.1...v1.12.2
Update CI for Laravel 10 by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/174
rdkafka by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/commit/078ccb48d10089c52630745961273f09b3ad8832Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.12.0...v1.12.1
rdkafka by @mateusjungesAllow consumer to subscribe to signals by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/172
stopConsume to stopConsuming by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/172onStopConsuming method (allows to define a callback that will run when the consumer stops consuming) by @mateusjunges in https://github.com/mateusjunges/laravel-kafka/pull/172Full Changelog: https://github.com/mateusjunges/laravel-kafka/compare/v1.11.0...v1.12.0
SIGQUIT and SIGTERM signals by @mateusjunges on #172onStopConsume method to the Consumer classOne column per quarter.