PHPackages                             jarir-ahmed/message-broker - 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. [Caching](/categories/caching)
4. /
5. jarir-ahmed/message-broker

ActiveLibrary[Caching](/categories/caching)

jarir-ahmed/message-broker
==========================

Framework-agnostic message broker facade for Kafka, RabbitMQ, Redis, SQS, Pub/Sub, MQTT, NATS, ZeroMQ, ActiveMQ, Azure Service Bus, and in-memory transports.

v1.0.0(today)02↑2900%MITPHPPHP &gt;=8.1

Since Jun 11Pushed todayCompare

[ Source](https://github.com/jarir2020/jarir-ahmed-message-broker)[ Packagist](https://packagist.org/packages/jarir-ahmed/message-broker)[ RSS](/packages/jarir-ahmed-message-broker/feed)WikiDiscussions main Synced today

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

Message Broker
==============

[](#message-broker)

Framework-agnostic PHP message broker facade for publishing the same message through one or more transports.

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

[](#installation)

```
composer require jarir-ahmed/message-broker
```

Install the optional client library for each transport you want to use.

Usage
-----

[](#usage)

```
use JarirAhmed\MessageBroker\MessageBroker;

$broker = new MessageBroker(
    ['custom', 'rabbitmq'],
    [
        'rabbitmq' => [
            'host' => 'localhost',
            'user' => 'guest',
            'password' => 'guest',
        ],
    ]
);

$broker->connect();
$broker->publish('orders.created', json_encode(['id' => 123], JSON_THROW_ON_ERROR));
$broker->close();
```

Supported broker names are:

- `activemq`
- `azureservicebus`
- `custom`
- `gcppubsub`
- `kafka`
- `mqtt`
- `nats`
- `rabbitmq`
- `redis`
- `sqs`
- `zeromq`

The `custom` broker is in-memory and has no external dependencies, which makes it useful for tests and local development.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20700f34ff813055154e843bbdbe04d33320c1e6a81bbb3301cad67cb8350fd3?d=identicon)[jarircse16](/maintainers/jarircse16)

---

Tags

redisqueuerabbitmqmessagingsqsmqttpubsubkafkamessage-broker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jarir-ahmed-message-broker/health.svg)

```
[![Health](https://phpackages.com/badges/jarir-ahmed-message-broker/health.svg)](https://phpackages.com/packages/jarir-ahmed-message-broker)
```

###  Alternatives

[enqueue/magento2-enqueue

Message Queue solutions for Magento2. Supports RabbitMQ, AMQP, STOMP, Amazon SQS, Kafka, Redis, Google PubSub, Gearman, Beanstalk, Google PubSub

4918.8k](/packages/enqueue-magento2-enqueue)[enqueue/redis

Message Queue Redis Transport

405.7M29](/packages/enqueue-redis)[javibravo/simpleue

Php package to manage queue tasks in a simple way

130343.4k1](/packages/javibravo-simpleue)

PHPackages © 2026

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