averor/query-bus

Message Bus extension aimed to help dealing with cqrs query part

dev-master / 2.x-dev 2018-08-31 06:23 UTC

This package is auto-updated.

Last update: 2024-10-29 05:34:20 UTC


README

pipeline status coverage report MIT License Semver

Simple Averor/message-bus extension aimed to help dealing with cqrs query part.

Install using Composer:

composer require averor/query-bus

Documentation

Will be surely written... someday. As for now - just take a look at examples/ or tests/

QueryBus

MessageBus is not able to return value from handler, so that's where QueryBus comes to the rescue. It uses some contracts from MessageBus but middlewares are not interchangeable.

\Averor\MessageBus\QueryBus\Contract\QueryBusMiddleware

introduced to assure that no base MessageBus middleware would be registered.

Testing with PHPUnit (>=7.0)

$ ./vendor/bin/phpunit ./tests