PHPackages                             justyork/enqueue-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. justyork/enqueue-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

justyork/enqueue-client
=======================

DI adapter for php-enqueue

v1.1.7(5y ago)134MITPHPPHP ^7.3|^8.0

Since Jun 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/justyork/enqueue-client)[ Packagist](https://packagist.org/packages/justyork/enqueue-client)[ RSS](/packages/justyork-enqueue-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (9)Used By (0)

Enqueue client
==============

[](#enqueue-client)

### Publish configs

[](#publish-configs)

```
artisan vendor:publish --provider="Justyork\EnqueueClient\EnqueueClientServiceProvider"

```

Config
------

[](#config)

```
// ./config/enqueue_client.php
return [
    'transports' => [
        'default' => 'rdkafka',

        'rdkafka' => [
            'dsn' => 'rdkafka://',
            'global' => [
                'group.id' => 'app',
                'metadata.broker.list' => env('KAFKA_HOST'),
                'sasl.mechanisms' => env('KAFKA_MECHANISM'),
                'sasl.username' => env('KAFKA_USERNAME'),
                'sasl.password' => env('KAFKA_PASSWORD'),
                'security.protocol' => env('KAFKA_PROTOCOL'),
            ],
            'class' => Enqueue\RdKafka\RdKafkaContext::class
        ]
    ]
];

```

```
// ./config/events_map.php
'event_name' => Event::class

```

Inject in the constructor
-------------------------

[](#inject-in-the-constructor)

#### PHP 8

[](#php-8)

```
public function __construct(protected EnqueueContextClient $context)
{
}

```

#### PHP 7.x

[](#php-7x)

```
protected EnqueueContextClient $context;

public function __construct(EnqueueContextClient $context)
{
    $this->context = $context;
}

```

Usage
-----

[](#usage)

### Produce

[](#produce)

```
// Create topic
$topic = $this->context->createTopic('default');

// Create message
$message = $this->context->createMessage('New message');

// Produce
$this->context->createProducer()->send($topic, $message);

```

### Consume

[](#consume)

```
run consume:events [topickname]

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

8

Last Release

1830d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f85693f72bbbc594ddf55c6b8ac7369fd2c21b00132acc594c15e31e90a99ecc?d=identicon)[justyork](/maintainers/justyork)

---

Top Contributors

[![justyork](https://avatars.githubusercontent.com/u/3800517?v=4)](https://github.com/justyork "justyork (21 commits)")

### Embed Badge

![Health badge](/badges/justyork-enqueue-client/health.svg)

```
[![Health](https://phpackages.com/badges/justyork-enqueue-client/health.svg)](https://phpackages.com/packages/justyork-enqueue-client)
```

PHPackages © 2026

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