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
Requires
- php: >=7.1
- averor/message-bus: ^2.0
Requires (Dev)
- averor/simple-logger: *
- phpunit/phpunit: ^7.0
- psr/log: ^1.0
This package is auto-updated.
Last update: 2024-10-29 05:34:20 UTC
README
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