Download the PHP package chimera/bus-tactician without Composer
On this page you can find all versions of the php package chimera/bus-tactician. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chimera/bus-tactician
More information about chimera/bus-tactician
Files in chimera/bus-tactician
Package bus-tactician
Short Description Service bus adapter for league/tactician
License MIT
Informations about the package bus-tactician
Chimera - bus/tactician
The term Chimera (/kɪˈmɪərə/ or /kaɪˈmɪərə/) has come to describe any mythical or fictional animal with parts taken from various animals, or to describe anything composed of very disparate parts, or perceived as wildly imaginative, implausible, or dazzling.
There are many many amazing libraries in the PHP community and with the creation and adoption of the PSRs we don't necessarily need to rely on full stack frameworks to create a complex and well designed software. Choosing which components to use and plugging them together can sometimes be a little challenging.
The goal of this set of packages is to make it easier to do that (without compromising the quality), allowing you to focus on the behaviour of your software.
This project provides an implementation for chimera/foundation
that
uses league/tactician
as service bus.
Installation
Package is available on Packagist, you can install it using Composer.
Usage
The only thing you need to do in order to plug tactician into chimera is to create an instance of the command bus as you usually do and pass it to the decorator:
Usually the write and read concerns have different needs, which means that the list of middleware will definitely vary, so it's highly suggested that you create two service buses: a query bus and a command bus:
Domain to read model conversion
It's a good practice to completely isolate your domain model from your read model (also known as response model). This is important to prevent UI components (e.g.: request handlers - HTTP controllers - or CLI commands) from manipulating your aggregate roots and entities.
We provide the ReadModelConversionMiddleware
to handle such thing, and it should
be added to your query bus (since nothing is really returned from command buses):
License
MIT, see LICENSE.
All versions of bus-tactician with dependencies
chimera/foundation Version ^0.4
league/tactician Version ^1.1
psr/container Version ^1.0