Sending messages through your system with messagebus.
Using Composer:
$ composer require qlimix/messagebus
<?php
use Qlimix\MessageBus\MessageBus\MiddlewareMessageBus;
$middleware = [];
$dispatcher = new FooBarDispatcher();
$messageBus = new MiddlewareMessageBus($middleware, $dispatcher);
$messageBus->handle(new Message($foo, $bar));
To run all unit tests locally with PHPUnit:
$ vendor/bin/phpunit
To ensure code quality run grumphp which will run all tools:
$ vendor/bin/grumphp run
Please see CONTRIBUTING for details.