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

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

g41797/queue-kafka
==================

Yii Queue Adapter for Apache Kafka

v0.0.3(1y ago)01[2 issues](https://github.com/g41797/queue-kafka/issues)BSD-3-ClausePHPPHP &gt;=8.2

Since Jul 9Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (15)Versions (4)Used By (0)

Yii3 Queue Adapter for Apache Kafka
===================================

[](#yii3-queue-adapter-for-apache-kafka)

[![build](https://github.com/g41797/queue-kafka/actions/workflows/tests.yml/badge.svg)](https://github.com/g41797/queue-kafka/actions/workflows/tests.yml)

Description
-----------

[](#description)

Yii3 Queue Adapter for [**Apache Kafka**](https://kafka.apache.org/) is adapter in [Yii3 Queue Adapters family.](https://github.com/yiisoft/queue/blob/master/docs/guide/en/adapter-list.md)

Implementation of adapter is based on synchronous mode of [Swoole PHP Kafka client](https://github.com/swoole/phpkafka) library.

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

[](#requirements)

- PHP 8.2 or higher.

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

[](#installation)

The package could be installed with composer:

```
composer require g41797/queue-kafka
```

General usage
-------------

[](#general-usage)

- As part of [Yii3 Queue Framework](https://github.com/yiisoft/queue/blob/master/docs/guide/en/README.md)
- Stand-alone

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

[](#configuration)

Default configuration:

```
[
     'bootstrapServers' => 'localhost:9092',  // Format `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']`
]
```

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

[](#limitations)

### Job Status

[](#job-status)

[Job Status](https://github.com/yiisoft/queue/blob/master/docs/guide/en/usage.md#job-status)

```
// Push a job into the queue and get a message ID.
$id = $queue->push(new SomeJob());

// Get job status.
$status = $queue->status($id);
```

is not supported.

### Testing

[](#testing)

Unit-testing is supported for local environment. Run of phpunit under GitHib action was disabled because problem of kafka configuration. Description of cumbersome configuration see [Kafka Listeners - Explained](https://rmoff.net/2018/08/02/kafka-listeners-explained/)

License
-------

[](#license)

Yii3 Queue Adapter for Apache Kafka is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

3

Last Release

673d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/309983e881b60fdc511151d24a73a52513278045d773700d3372011d85acbfd3?d=identicon)[g41797](/maintainers/g41797)

---

Top Contributors

[![g41797](https://avatars.githubusercontent.com/u/9116281?v=4)](https://github.com/g41797 "g41797 (74 commits)")

---

Tags

backgound-jobkafkaphpqueueyiiqueueyii3kafka

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm, Rector

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

1556.0M3](/packages/shiftonelabs-laravel-sqs-fifo-queue)[koco/messenger-kafka

Symfony Messenger Kafka Transport

931.1M1](/packages/koco-messenger-kafka)[enqueue/rdkafka

Message Queue Kafka Transport

522.5M17](/packages/enqueue-rdkafka)[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

48381.1k3](/packages/kainxspirits-laravel-pubsub-queue)

PHPackages © 2026

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