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

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

prooph/service-bus
==================

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

v6.3.0(4y ago)4421.4M↓18.9%53[1 issues](https://github.com/prooph/service-bus/issues)20BSD-3-ClausePHPPHP ^7.3 | ^8.0

Since Jun 28Pushed 4y ago28 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (55)Used By (20)

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

[](#prooph-service-bus)

PHP 7.1+ lightweight message bus supporting CQRS and Micro Services

[![Build Status](https://camo.githubusercontent.com/d2417b061e9ba9bf5ad5e25d7495ecb3dc0376df08ea4be47be5d81bc44619c8/68747470733a2f2f7472617669732d63692e636f6d2f70726f6f70682f736572766963652d6275732e706e673f6272616e63683d6d6173746572)](https://travis-ci.com/prooph/service-bus)[![Coverage Status](https://camo.githubusercontent.com/f8cecac7dce50e28536312416da6e80cd5825257d9ec4469c22f5824fd3fb28f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70726f6f70682f736572766963652d6275732f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/prooph/service-bus?branch=master)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/prooph/improoph)

Important
---------

[](#important)

This library will receive support until December 31, 2019 and will then be deprecated.

For further information see the official announcement here:

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.

prooph/service-bus shields your model. Data input and output ports become irrelevant and no longer influence business logic. We're looking at you Hexagonal Architecture.

prooph/service-bus decouples your model from any framework. You can use a web framework like Zend, Symfony, Laravel and co. to handle http requests and pass them via prooph/service-bus to your model but you can also receive the same messages via CLI or from a messaging system like RabbitMQ or Beanstalkd.

It is also a perfect fit for microservices architecture as it provides an abstraction layer for message-based inter-service communication.

[![prooph_architecture](https://raw.githubusercontent.com/prooph/proophessor/master/docs/book/img/prooph_overview.png)](https://raw.githubusercontent.com/prooph/proophessor/master/docs/book/img/prooph_overview.png)

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

[](#installation)

You can install prooph/service-bus via composer by running `composer require prooph/service-bus`, which will install the latest version as requirement to your composer.json.

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

[](#quick-start)

```
