Installation
Install Message Bus with Composer.
shell
composer require raxos/message-busRequirements
- PHP 8.5 or newer.
- A reachable RabbitMQ server to connect to.
- The
php-amqplib/php-amqpliblibrary (installed for you), which implements the AMQP protocol used to talk to RabbitMQ.
Raxos dependencies
Message Bus builds on a few other Raxos packages, which Composer installs for you:
- raxos/contract: the
MessageInterface,HandlerInterfaceand message bus interfaces the package implements. - raxos/error: the base exception class that every Message Bus exception extends.
- raxos/foundation: the
Singletonutility used to resolve handlers, and theArrayListused to track open queues. - raxos/terminal: the
Printerpassed to a handler for command line output.
Return to the Message Bus introduction.