PHPackages                             koo/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. koo/laravel-queue-kafka

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

koo/laravel-queue-kafka
=======================

Kafka driver for Laravel Queue

v0.2.3(8y ago)0131MITHTMLPHP &gt;=5.6.4

Since Nov 9Pushed 8y agoCompare

[ Source](https://github.com/ElaineKoo/laravel-queue-kafka)[ Packagist](https://packagist.org/packages/koo/laravel-queue-kafka)[ RSS](/packages/koo-laravel-queue-kafka/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (6)Used By (0)

Kafka Queue driver for Laravel
==============================

[](#kafka-queue-driver-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/9302a5ae9f72eac7a396849d11eacca7e2569a31181e066563795f456f243ff5/68747470733a2f2f706f7365722e707567782e6f72672f4b6f6f2f6c61726176656c2d71756575652d6b61666b612f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/Koo/laravel-queue-kafka)[![Build Status](https://camo.githubusercontent.com/f45560e282824d557320e8ec086dca9763827f05b244f5c25d20a92d595c5ed6/68747470733a2f2f7472617669732d63692e6f72672f4b6f6f696e7465726e65742f6c61726176656c2d71756575652d6b61666b612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Koointernet/laravel-queue-kafka)[![Total Downloads](https://camo.githubusercontent.com/9aaad3303afcbbbe6eadf8348f6212dc038ecbb9e2f7411429860b5bff4914f9/68747470733a2f2f706f7365722e707567782e6f72672f4b6f6f2f6c61726176656c2d71756575652d6b61666b612f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/Koo/laravel-queue-kafka)[![StyleCI](https://camo.githubusercontent.com/720ddf2920215a91f3582cd9bde251575670c884e6f466b10ca236785726ccea/68747470733a2f2f7374796c6563692e696f2f7265706f732f39393234393738332f736869656c64)](https://styleci.io/repos/99249783)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

#### Inspired By

[](#inspired-by)

- [Koointernet/laravel-queue-kafka](https://github.com/Koointernet/laravel-queue-kafka.git)

#### Installation

[](#installation)

1. Install [librdkafka c library](https://github.com/edenhill/librdkafka)

    ```
    $ cd /tmp
    $ mkdir librdkafka
    $ cd librdkafka
    $ git clone https://github.com/edenhill/librdkafka.git .
    $ ./configure
    $ make
    $ make install
    ```
2. Install the [php-rdkafka](https://github.com/arnaud-lb/php-rdkafka) PECL extension

    ```
    $ pecl install rdkafka
    ```
3. Add the following to your php.ini file to enable the php-rdkafka extension `extension=rdkafka.so`
4. Install this package via composer using:

    `composer require koo/laravel-queue-kafka`
5. Add LaravelQueueKafkaServiceProvider to `providers` array in `config/app.php`:

    `Koo\LaravelQueueKafka\LaravelQueueKafkaServiceProvider::class,`

    If you are using Lumen, put this in `bootstrap/app.php`

    `$app->register(Koo\LaravelQueueKafka\LumenQueueKafkaServiceProvider::class);`
6. Add these properties to `.env` with proper values:

    ```
     QUEUE_DRIVER=kafka

    ```

#### Usage

[](#usage)

Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation:

#### Testing

[](#testing)

Run the tests with:

```
vendor/bin/phpunit
```

#### Acknowledgement

[](#acknowledgement)

This library is inspired by [laravel-queue-rabbitmq](https://github.com/vyuldashev/laravel-queue-rabbitmq) by vyuldashev. And the Kafka implementations by [Superbalist](https://github.com/Superbalist/php-pubsub-kafka) be sure to check those out.

#### 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.

#### Supported versions of Laravel

[](#supported-versions-of-laravel)

Tested on: \[5.5\]

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

4

Last Release

3102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8456c5bea96bd42d3edac42252a6e50517e8a723e4843c65439f109184d6d7de?d=identicon)[ElaineKoo](/maintainers/ElaineKoo)

---

Top Contributors

[![ElaineKoo](https://avatars.githubusercontent.com/u/22931775?v=4)](https://github.com/ElaineKoo "ElaineKoo (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)[romanzipp/laravel-queue-monitor

Queue Monitoring for Laravel Database Job Queue

8271.6M1](/packages/romanzipp-laravel-queue-monitor)[palpalani/laravel-sqs-queue-json-reader

Custom SQS queue reader for Laravel

26109.8k](/packages/palpalani-laravel-sqs-queue-json-reader)[rapidez/core

Rapidez Core

1820.7k53](/packages/rapidez-core)[aplr/kafkaesk

Laravel Kafka queue driver

102.1k](/packages/aplr-kafkaesk)

PHPackages © 2026

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