Skip to content

qlimix/messagebus

Repository files navigation

Messagebus

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages