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

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

cline/message-bus
=================

2.0.2(3mo ago)10MITPHPPHP ^8.5.0CI passing

Since Sep 15Pushed 3mo agoCompare

[ Source](https://github.com/faustbrian/message-bus)[ Packagist](https://packagist.org/packages/cline/message-bus)[ RSS](/packages/cline-message-bus/feed)WikiDiscussions 2.x Synced today

READMEChangelog (3)Dependencies (21)Versions (10)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/message-bus/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/message-bus/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/c0b9e34e87b4cc8cd596e58551ff4467784c91c905b12a652cb2396c5783bee8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f6d6573736167652d6275732e737667)](https://packagist.org/packages/cline/message-bus)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/856cb55e77dd0973437f6629a554d985084c4c8bff381b6452297a0629ca9e11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f6d6573736167652d6275732e737667)](https://packagist.org/packages/cline/message-bus)

---

message-bus
===========

[](#message-bus)

A lightweight, extensible message bus implementation for PHP supporting both Command and Query patterns with middleware pipeline architecture.

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

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/message-bus
```

Documentation
-------------

[](#documentation)

- **[Getting Started](https://docs.cline.sh/message-bus/getting-started/)** - Installation and basic usage
- **[Command Bus](https://docs.cline.sh/message-bus/command-bus/)** - Write operations and handlers
- **[Query Bus](https://docs.cline.sh/message-bus/query-bus/)** - Read operations and CQRS
- **[Middleware](https://docs.cline.sh/message-bus/middleware/)** - Pipeline and cross-cutting concerns
- **[Handler Discovery](https://docs.cline.sh/message-bus/handler-discovery/)** - Automatic handler registration
- **[API Reference](https://docs.cline.sh/message-bus/api-reference/)** - Complete API documentation

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/message-bus/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance80

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Recently: every ~11 days

Total

9

Last Release

107d ago

Major Versions

1.x-dev → 2.0.02026-03-04

PHP version history (2 changes)1.1.0PHP ^8.4.0

1.2.0PHP ^8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (10 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/mail

The Illuminate Mail package.

5910.6M500](/packages/illuminate-mail)

PHPackages © 2026

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