New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

laravel-tool/kafka-queue

Laravel Kafka Queue driver with Horizon support
1,616 4

Larablocks Analysis

laravel-tool/kafka-queue works with Laravel 10, 11 and 12 (latest release 1.3.1, Aug 4, 2025).

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Latest release doesn't support Laravel 13, the current version
  • No release in the last 12 months (last: Aug 4, 2025)
  • 458 downloads a month (needs 10,000)
  • 4 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Aug 4, 2025.
  • No releases in the last 12 months.
  • First released: Apr 20, 2024.
  • Monthly downloads: 458.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require laravel-tool/kafka-queue
Latest Version:1.3.1
PHP:^8.3
Laravel:10 · 11 · 12
License:MIT
Last Updated:Aug 4, 2025
Links: GitHub  ·  Packagist
Maintainer: mxp100

kafka-queue

Laravel Kafka Queue connection with Horizon support

Installation

1. Composer

composer require laravel-tool/kafka-queue

2. Add to config/queue.php

'kafka' => [
    'driver' => 'kafka',
    'broker_list' => env('KAFKA_BROKER_LIST', 'kafka:9092'),
    'auth' => [
        'enable' => env('KAFKA_AUTH_ENABLE', false),
        'mechanism' => env('KAFKA_AUTH_MECHANISM', 'PLAIN'),
        'username' => env('KAFKA_AUTH_USERNAME'),
        'password' => env('KAFKA_AUTH_PASSWORD'),
        'ssl_ca_location' => env('KAFKA_AUTH_SSL_CA_LOCATION'),
    ],
    'queue' => env('KAFKA_QUEUE', 'default'),
    'heartbeat_ms' => env('KAFKA_HEARTBEAT', 5000),
    'group_name' => env('KAFKA_QUEUE_GROUP', 'default'),
    'producer_timeout_ms' => 1000,
    'consumer_timeout_ms' => 3000,
    'queue_disable_length' => false, // Disable this if trouble with performance
    'horizon' => true, // Support for Laravel Horizon
    'after_commit' => false,
],

Caution

It is not recommended to use it with delayed tasks due to the way Kafka works. When a deferred task reaches the execution time, it is again placed at the end of the queue and so on until the moment when it is allowed to be executed.

Alternatives to laravel-tool/kafka-queue

sandermuller/laravel-queue-insights

Self-hosted, driver-agnostic queue observability for Laravel. Per-class throughp...

49,701 8
devifyo/watchtower

Production-safe, driver-agnostic dashboard for Laravel crons, queues and errors...

10,226 72
romalytar/yammi-jobs-monitoring-laravel

Queue monitoring and observability for Laravel. Tracks job lifecycle, retries, f...

7,234 35
knobik/laravel-horizon-job-output

Job Output for Laravel Horizon — give queued jobs the output API an Artisan comm...

2,853 5
ashiqfardus/horizon-running-jobs

Monitor currently running jobs in Laravel Horizon for distributed systems

2,011 6

Version History

Version Released PHP Laravel License
1.3.1 ^8.3 >=10 MIT
1.3.0 ^8.3 >=10 MIT
1.2.0 ^8.3 >=10 MIT
1.1.0 ^8.3 >=10 MIT
1.0.0 ^8.3 >=10 MIT