Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Kafka Laravel Package

mateusjunges/laravel-kafka

Laravel Kafka brings a clean Laravel-friendly API for producing and consuming Kafka messages, with an emphasis on developer experience and easier testing. Ideal for integrating Kafka streams and event-driven workflows into your Laravel applications.

View on GitHub
Deep Wiki
Context7
Fixes
2024-05-14
  • Properly shut down the producer for single messages. Improve docs for sending single and multiple messages by @mateusjunges on #283
2024-05-11
2024-04-29
  • Mirror logic to enable fake builder set the topic name for all the messages at once by @cvairlis in #279
2024-03-13
2024-03-12
2024-01-23
  • Install a signal handler for SIGINT (cmd/ctrl + c) by @mateusjunges
2024-01-09
2023-12-07
2023-10-24
2023-09-24
2023-09-18
  • Update package dependencies by @mateusjunges
  • Update README.md to link to the 1.13 documentation page by @tavsec in #212
2023-04-12
2023-04-08
2023-03-28
2023-03-04
2023-02-21
  • Fix contracts marked as internal (Fixes #178)
2023-02-15
2023-02-09
  • Allow consumers to subscribe to SIGQUIT and SIGTERM signals by @mateusjunges on #172
  • Add onStopConsume method to the Consumer class
2023-01-30
2023-01-24
2023-01-10
  • Add Logger contract to allow users to implement their own Logger by @remarkusable in #165
2022-12-17
2022-11-29
  • Allow to configure sleep timeout when Producer is retrying flush by @mateusjunges in #156
2022-10-28
  • Make Kafka class usable through interface injection by @mosharaf13 in #150
2022-10-04
2022-09-12
2022-08-22
2022-08-17
2022-08-16
2022-08-02
2022-07-21

Added

2022-06-13

Added

Fixed

2022-06-03

Fixed

  • Fixes Sasl security protocol not being passed to config class. By @gajosu in #106
  • Link to the current version documentation fixed by @Elnadrion in #104
  • (Documentation) Added missing comas in the class params by @shanginn in #101
2022-05-18
  • Fixed Passing null to parameter #1 ($string) of type string is deprecated by @elnadrion on #100
2022-05-01

Fixed

  • Fixes error when using SASL_SSL with KafkaConsumerCommmand (issue #96, fixed with #3ea902d)
2022-044-07

Fixed

  • Fix Json Serialize to not serialize the same message twice on #92 by @lukecurtis93
2022-04-19

Fixed

2022-04-07

Fixed

  • Fix Json Serialize to not serialize the same message twice on #92 by @lukecurtis93
2022-02-28

Fixed

  • Use correct consumer group id config key in consumer command
2022-02-16

Fixed

2022-01-21

Fixed

  • Allow using sasl with lowercase config keys (#1cc7521)
2022-01-20

Fixed

  • Allow using SASL with lowercase config keys. (#ca542e21)
2022-01-10

Added

  • Add support for ext-rdkafka v6.0

Fixed

Changed

  • Removed Null Serializer
  • Message headers can't be null (#ea9d97f)
2021-12-21

Fixed

  • Included SASL on consumer config when applicable (#5c028bf)
2021-12-19

Fixed

  • Fixed built in consumer command (#50)
2021-12-10

Added

  • Added a withBrokers setter to the consumer api, allowing to set brokers on the run (#6a639ce)
  • Added boolean argument to withAutoCommit, which defaults to true (#3ffb226)
  • Added support for librdkafka v0.11.3 (#4600fdc)

Fixed

  • Cast auto_commit to string on initial consumer options (#f2a6c2b)
2021-12-08

Added

  • Added message context to committers plus allow to use custom committers (#133a4bb)
  • Added retryable handler, allowing to retry message handling and block processing any other message. (#0f9aeee)
2021-12-03

Fixed

  • Fixed composer.json dependencies. Improve installation process (#5981907)
2021-12-01

Added

  • Allow createConsumer to use consumer group id from config (#559b467)
  • Improve consistency with serializers/deserializers naming (#b55772a)
2021-11-29

Added

  • Added stopConsume method to allow consumer to be gracefully stopped (#db37381)
  • Reduced consumer timeout to a more realistic number, this allows signals to be caught every 2 seconds allowing graceful shutdown (#af1902f)
2021-11-25

Fixed

  • Fix incorrect message published count (#06c3844)
  • Fixed exception thrown when kafka cannot complete a flush call (#9a1fcba)
2021-11-23

Fixed

  • Reworked testing framework to properly check what was dispatched (#ec8b3f6)
  • Fixed incorrect param ordering on test (#1022799)
  • Fixed KafkaFake to store published messages correctly (#4fe6e96)
  • Added tests to ensure count of published messages works (#7ea370f)
2021-11-14

Added

  • Added assertPublishedTimes and assertPublishedOnTimes methods (#a16a10d)

Changed

  • Make topic name optional. Add method to set topic name when using fake driver (#12dde5, #8f5b25, #f3c8b43, #fe19922)
  • Make broker parameter optional (#5625bef, #aa5596c, #c6ad0e9, #5117cd8)
  • Allow getTopicName to return null on KafkaMessage contract (#3e6289d)
  • Make topicName optional on Message::create() (#7213af9)
  • Fix publishOn and createConsumer method signatures on kafka facade (#eb66e8e)
  • Make message argument optional for assertPublished and assertPublishedOn methods (#9ec5eea)
2021-11-08

Added

  • Added the security protocol to Sasl class. By default, its used SASL_PLAINTEXT(#f4e62d2)
  • Allow usage of SASL with Kafka producers (#04686cc)
  • Allow both SASL_PLAINTEXT and SASL_SSL security protocols with sasl. (#49e1112)
2021-11-05

Added

  • Allow usage of custom options for producer config (#38ca04)
2021-10-20

Added

  • Added validation to ensure a kafka consumer will not subscribe to a topic if it is already subscribed. (#f1ab25c)

Changed

  • Make $topics parameter optional on Kafka::createConsumer method. (#ef7a1a8)
2021-09-28

Fixed

  • Fixed documentation about message handlers (#c375e10)
  • Fixed tests to test a message can be consumed using message handlers
2021-09-27

Added

  • Added option to use custom serializers/deserializers with Kafka(#5)
  • Added default AVRO, Json and Null serializers/deserializers (#5)
  • Message handlers now receives a Junges\Kafka\Contracts\KafkaConsumerMessage instance, instead of RdKafka\Message directly.

Changed

  • Junges\Kafka\Message class namespace changed to Junges\Kafka\Message\Message
  • Method withMessageKey renamed to withBodyKey, on Junges\Kafka\Message\Message and Junges\Kafka\Producers\ProducerBuilder classes. (b41c310)
2021-09-25

Added

  • Add documentation to the config file
  • Add tag to publish config file

Fixed

  • Fix documentation typos #2
  • Fix installation docs
2021-09-12
  • Initial release
2020-11-23

Fixed

  • Fixes exception thrown when kafka cannot complete a flush call. (#ddae8e3)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport