PHPackages                             sadegh2007/laravel\_queue\_kafka - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. sadegh2007/laravel\_queue\_kafka

ActiveLibrary[Queues &amp; Workers](/categories/queues)

sadegh2007/laravel\_queue\_kafka
================================

Kafka Driver For Laravel

0.0.2(5y ago)14MITPHPPHP ^7.3|^8.0

Since May 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sadegh2007/laravel_queue_kafka)[ Packagist](https://packagist.org/packages/sadegh2007/laravel_queue_kafka)[ RSS](/packages/sadegh2007-laravel-queue-kafka/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Kafka Queue driver for Laravel

Installation
------------

[](#installation)

You can install this package via composer using this command:

```
composer require sadegh2007/laravel_queue_kafka

```

The package will automatically register itself.

Add connection to `config/queue.php`:

```
'connections' => [
    // ...

    'kafka' => [
        'driver' => 'kafka',
        'sleep_on_error' => env('KAFKA_SLEEP_ON_ERROR', 5),
        'topics' => env('KAFKA_TOPICS', 'default'),
        'debug' => env('KAFKA_DEBUG', false),
        'brokers' => env('KAFKA_BROKERS', 'localhost:9092'),
        'auto_commit' => 'false',
        'group_id' => 'myConsumerGroup',
        'consumer' => [
            'sasl.username' => env('KAFKA_USERNAME', null),
            'sasl.password' => env('KAFKA_PASSWORD', null),
            'auto.offset.reset' => 'smallest',
            'security.protocol' => env('KAFKA_SECURITY_PROTOCOL', 'SASL_SSL'),
            'sasl.mechanisms' => env('KAFKA_SASL_MECHANISMS', 'SCRAM-SHA-256'),
            'compression.type' => 'gzip',
        ],
        'producer' => [
            'sasl.username' => env('KAFKA_USERNAME', null),
            'sasl.password' => env('KAFKA_PASSWORD', null),
            'security.protocol' => env('KAFKA_SECURITY_PROTOCOL', 'SASL_SSL'),
            'sasl.mechanisms' => env('KAFKA_SASL_MECHANISMS', 'SCRAM-SHA-256'),
            'compression.type' => 'gzip',
            'log_level' => LOG_DEBUG,
            'debug' => 'all'
        ]
    ],

    // ...
],
```

Lumen Usage
-----------

[](#lumen-usage)

For Lumen usage the service provider should be registered manually as follow in `bootstrap/app.php`:

```
$app->register(Sadeq\LaravelQueueKafka\KafkaServiceProvider::class);
```

Consuming Messages
------------------

[](#consuming-messages)

There are one ways of consuming messages for now.

1. `kafka:consume` command which is provided by this package.

you can specify topics with command option `--topics=default`

Contribution
------------

[](#contribution)

You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1860d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1eecf1dca3d164b00cb06f0d709374fabb951f88946934edac01650bed463fc5?d=identicon)[sadegh2007](/maintainers/sadegh2007)

---

Top Contributors

[![sadegh2008](https://avatars.githubusercontent.com/u/55918456?v=4)](https://github.com/sadegh2008 "sadegh2008 (2 commits)")

---

Tags

kafkalaravel

### Embed Badge

![Health badge](/badges/sadegh2007-laravel-queue-kafka/health.svg)

```
[![Health](https://phpackages.com/badges/sadegh2007-laravel-queue-kafka/health.svg)](https://phpackages.com/packages/sadegh2007-laravel-queue-kafka)
```

###  Alternatives

[vladimir-yuldashev/laravel-queue-rabbitmq

RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.

2.1k10.3M32](/packages/vladimir-yuldashev-laravel-queue-rabbitmq)[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3075.8M](/packages/dusterio-laravel-aws-worker)[sassnowski/venture

A package to manage complex workflows built on top of Laravel's queue.

823288.5k1](/packages/sassnowski-venture)[mateusjunges/laravel-trackable-jobs

This package allows you to track your jobs

316202.9k](/packages/mateusjunges-laravel-trackable-jobs)[mxl/laravel-queue-rate-limit

Simple Laravel queue rate limiting

92489.4k](/packages/mxl-laravel-queue-rate-limit)[palpalani/laravel-sqs-queue-json-reader

Custom SQS queue reader for Laravel

29120.6k](/packages/palpalani-laravel-sqs-queue-json-reader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
