qlimix/messagebus

Sending messages through your system with a message bus

2.0.3 2020-11-14 12:08 UTC

This package is auto-updated.

Last update: 2024-11-14 20:53:59 UTC


README

Travis CI Coveralls Packagist MIT License

Sending messages through your system with messagebus.

Install

Using Composer:

$ composer require qlimix/messagebus

usage

<?php

use Qlimix\MessageBus\MessageBus\MiddlewareMessageBus;

$middleware = [];
$dispatcher = new FooBarDispatcher();

$messageBus = new MiddlewareMessageBus($middleware, $dispatcher);

$messageBus->handle(new Message($foo, $bar));

Testing

To run all unit tests locally with PHPUnit:

$ vendor/bin/phpunit

Quality

To ensure code quality run grumphp which will run all tools:

$ vendor/bin/grumphp run

Contributing

Please see CONTRIBUTING for details.