PHPackages                             webit/message-bus - 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. webit/message-bus

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

webit/message-bus
=================

1.0.0(8y ago)0814MITPHPPHP &gt;=7.0

Since Jan 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dbojdo/message-bus)[ Packagist](https://packagist.org/packages/webit/message-bus)[ RSS](/packages/webit-message-bus/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (4)

PHP Message Bus
===============

[](#php-message-bus)

The library provides an abstraction to publish / consume messages to / from message bus.

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

[](#installation)

```
composer require webit/message-bus ^1.0.0
```

Concepts introduction
---------------------

[](#concepts-introduction)

### Message

[](#message)

***Message*** is just simple container to be *published* by ***Publisher*** and *consumed* by ***Consumer***.

```
$message = new Message('message-type', json_encode(['some' => 'data to be sent']));
```

Message **type** is required to recognise what sort of message is sent and helps to understand how it should be handled. Message **content** is a message itself. It can be ***any string*** (not necessarily json).

### Publisher and Consumer

[](#publisher-and-consumer)

***Publisher*** publishes a message (using underlying infrastructure) but ***Consumer*** awaiting the ***Message*** to process it.

Infrastructure is to be provided by a separate package. It should **provide** "webit/message-bus-infrastructure:^1.0.0" Composer Virtual Package.

Tests
-----

[](#tests)

```
./vendor/bin/phpunit
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

3052d ago

### Community

Maintainers

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

---

Tags

message queuemessage bus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webit-message-bus/health.svg)

```
[![Health](https://phpackages.com/badges/webit-message-bus/health.svg)](https://phpackages.com/packages/webit-message-bus)
```

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[simple-bus/message-bus

Generic classes and interfaces for messages and message buses

3455.7M30](/packages/simple-bus-message-bus)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144691.7k4](/packages/clue-mq-react)[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

74262.1k1](/packages/mikemadisonweb-yii2-rabbitmq)[simple-bus/rabbitmq-bundle-bridge

Use OldSoundRabbitMQBundle with SimpleBus/AsynchronousBundle

39827.3k4](/packages/simple-bus-rabbitmq-bundle-bridge)

PHPackages © 2026

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