PHPackages                             maksimovic/service-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. maksimovic/service-bus

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

maksimovic/service-bus
======================

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

v7.0.4(1mo ago)01.4k↑109.7%BSD-3-ClausePHPPHP ^8.1CI passing

Since Jun 28Pushed 1mo agoCompare

[ Source](https://github.com/maksimovic/service-bus)[ Packagist](https://packagist.org/packages/maksimovic/service-bus)[ Docs](http://getprooph.org/)[ RSS](/packages/maksimovic-service-bus/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (61)Used By (0)

Prooph Service Bus
==================

[](#prooph-service-bus)

> Fork of [prooph/service-bus](https://github.com/prooph/service-bus) — maintained for PHP 8.1–8.5 compatibility.

PHP lightweight message bus supporting CQRS and micro services.

[![CI](https://github.com/maksimovic/service-bus/actions/workflows/ci.yml/badge.svg)](https://github.com/maksimovic/service-bus/actions/workflows/ci.yml)

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

[](#installation)

```
$ composer require maksimovic/service-bus
```

Requires PHP 8.1 or later.

Fork rationale
--------------

[](#fork-rationale)

The upstream package was last released in 2021 and is no longer maintained. This fork:

- Bumps minimum PHP to 8.1
- Fixes implicit nullable type deprecations (PHP 8.4+)
- Upgrades PHPUnit to `^10.5` with schema migration
- Migrates tests from `phpspec/prophecy` to native PHPUnit mocks
- Upgrades `react/promise` to `^3.3` (`Promise` → `PromiseInterface`, `done()` removal)
- Replaces Travis CI with GitHub Actions (PHP 8.1–8.5 matrix)

Behavior is otherwise unchanged.

Messaging API
-------------

[](#messaging-api)

prooph/service-bus is a lightweight messaging facade. It allows you to define the API of your model with the help of messages:

1. **Command** messages describe actions your model can handle.
2. **Event** messages describe things that happened while your model handled a command.
3. **Query** messages describe available information that can be fetched from your (read) model.

Quick Start
-----------

[](#quick-start)

```
