PHPackages                             aplr/kafkaesk - 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. aplr/kafkaesk

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

aplr/kafkaesk
=============

Laravel Kafka queue driver

v1.0.3(6y ago)102.1k↑250%5[4 issues](https://github.com/aplr/kafkaesk/issues)[1 PRs](https://github.com/aplr/kafkaesk/pulls)MITPHPPHP &gt;=7.2.0CI failing

Since Apr 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aplr/kafkaesk)[ Packagist](https://packagist.org/packages/aplr/kafkaesk)[ RSS](/packages/aplr-kafkaesk/feed)WikiDiscussions master Synced 1mo ago

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

Kafkaesk: A queue driver for Laravel
====================================

[](#kafkaesk-a-queue-driver-for-laravel)

Kafkaesk adds support for Apache Kafka to Laravel Queues. It builds upon the [rdkafka](https://github.com/arnaud-lb/php-rdkafka) php extension, which you will have to install seperately. Also, you have to install the C/C++ client library [librdkafka](https://github.com/edenhill/librdkafka) upfront. Afterwards, you can freely push jobs to your favorite Kafka queue!

Kafkaesk supports PHP 7.2-7.4 and requires Laravel 6-7. If you still need to support Laravel 5 use [rapideinternet/laravel-queue-kafka](https://github.com/rapideinternet/laravel-queue-kafka), which Kafkaesk is a fork of.

[![Packagist Version](https://camo.githubusercontent.com/3e69e916a73137aa4c514b1627aeb76f448f9bdda29bbf1784cc79e70066373b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c722f6b61666b6165736b3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3e69e916a73137aa4c514b1627aeb76f448f9bdda29bbf1784cc79e70066373b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c722f6b61666b6165736b3f7374796c653d666c61742d737175617265)[![GitHub Workflow Status](https://camo.githubusercontent.com/c283f6d376ba47bb3b946b5b40de401afb23cde7c7bf53696d4924ad624b43e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61706c722f6b61666b6165736b2f54657374733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c283f6d376ba47bb3b946b5b40de401afb23cde7c7bf53696d4924ad624b43e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61706c722f6b61666b6165736b2f54657374733f7374796c653d666c61742d737175617265)[![PHP from Packagist](https://camo.githubusercontent.com/ff41aadce86906c8119592715d4eacea184c0217b20106c41c8c6e0f1f3d8099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61706c722f6b61666b6165736b3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ff41aadce86906c8119592715d4eacea184c0217b20106c41c8c6e0f1f3d8099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61706c722f6b61666b6165736b3f7374796c653d666c61742d737175617265)[![GitHub license](https://camo.githubusercontent.com/2b6d4119944964f344f8b95fd7a809c586db2896c89a2444b877be7b36b46ee8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61706c722f6b61666b6165736b3f7374796c653d666c61742d737175617265)](https://github.com/aplr/kafkaesk/blob/master/LICENSE)

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

[](#installation)

To install the latest version of `aplr/kafkaesk` just require it using composer.

```
composer require aplr/kafkaesk
```

This package is using Laravel's package auto-discovery, so it doesn't require you to manually add the ServiceProvider. If you've opted out of this feature, add the ServiceProvider to the providers array in config/app.php:

```
Aplr\Kafkaesk\ServiceProvider::class,
```

Requirements
------------

[](#requirements)

Make sure you have installed the C/C++ client library [librdkafka](https://github.com/edenhill/librdkafka). If you're running macOS, you can simply use [Homebrew](https://brew.sh/) to install it.

```
brew install librdkafka
```

Additionally you have to install the php extension [rdkafka](https://github.com/arnaud-lb/php-rdkafka). You can do this either manually or simply by using [pecl](https://pecl.php.net/).

```
pecl install rdkafka
```

If both installs succeed, you're all set!

Configuration
-------------

[](#configuration)

The default configuration is set in `config/kafkaesk.php`. Merge the contents of this file with the `connections` array in your local `config/queue.php`. You can do this using the command below.

```
php artisan vendor:publish --provider="Aplr\Kafkaesk\ServiceProvider"
```

### Environment variables

[](#environment-variables)

When using the default configuration, you can also use the environment variables described below to configure the queue driver.

NameDefaultDescription`KAFKA_QUEUE``default`The name of the default queue.`KAFKA_CONSUMER_GROUP_ID``laravel`The group in which the consumer resides.`KAFKA_BROKERS``localhost`Kafka broker address.`KAFKA_ERROR_SLEEP``5`Seconds to sleep on communication error.`KAFKA_DEADLOCK_SLEEP``2`Seconds to sleep on deadlocks`KAFKA_SASL_USERNAME`SASL username`KAFKA_SASL_PASSWORD`SASL passwordUsage
-----

[](#usage)

Since Kafkaesk is just a driver for [Laravel Queues](https://laravel.com/docs/7.x/queues), just read through their extensive documentation.

Limitations
-----------

[](#limitations)

Currently, deferring jobs on the queue using the `later` function of Laravel Queues is not yet supported by this library. Feel free to add support by creating a PR!

Acknowledgements
----------------

[](#acknowledgements)

This library is a fork of the outdated [rapideinternet/laravel-queue-kafka](https://github.com/rapideinternet/laravel-queue-kafka), adding support for Laravel 6-7, fixing tests and fancying everything up a bit.

Licence
-------

[](#licence)

Kafkaesk is licenced under The MIT Licence (MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

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 ~7 days

Total

4

Last Release

2194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1723f152d0d0015ac9fd0ee662732f276ac4fe314c245f6dad7a710155e75bb9?d=identicon)[aplr](/maintainers/aplr)

---

Top Contributors

[![aplr](https://avatars.githubusercontent.com/u/1051396?v=4)](https://github.com/aplr "aplr (43 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/aplr-kafkaesk/health.svg)

```
[![Health](https://phpackages.com/badges/aplr-kafkaesk/health.svg)](https://phpackages.com/packages/aplr-kafkaesk)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[illuminate/queue

The Illuminate Queue package.

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

A simple, lightweight library for managing feature flags.

57711.1M53](/packages/laravel-pennant)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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