Download the PHP package componenta/cqrs-app without Composer
On this page you can find all versions of the php package componenta/cqrs-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download componenta/cqrs-app
More information about componenta/cqrs-app
Files in componenta/cqrs-app
Package cqrs-app
Short Description Componenta application integration for CQRS discovery compilation
License MIT
Informations about the package cqrs-app
Componenta CQRS App
componenta/cqrs-app adds application-level discovery and build-time map compilation for componenta/cqrs.
It does not contain runtime middleware, transports, or console workers. Install the relevant optional CQRS packages for those concerns.
Installation
Dependencies
| Dependency | Purpose |
|---|---|
PHP ^8.4 |
Modern language features and strict types. |
componenta/app |
Compile cache contributor integration. |
componenta/arrayable |
Shared array conversion contract. |
componenta/class-finder |
Class discovery and listener compiler integration. |
componenta/config |
Config provider integration. |
componenta/cqrs |
Core CQRS runtime contracts and config keys. |
componenta/tokenizer |
Source inspection for handler map compilation. |
psr/container |
Service lookup. |
What It Registers
| Config section | Entries |
|---|---|
factories |
Attribute and compiled-map locators for command handlers, command listeners, and query handlers. |
invokables |
Command/query handler map compilers, command listener map compiler, and command attribute map compiler/contributor. |
ClassFinderConfigKey::LISTENERS |
Attribute locators used during discovery. |
CompileConfigKey::LISTENER_COMPILERS |
Map compilers used during build. |
AppConfigKey::COMPILE_CACHE_CONTRIBUTORS |
Command attribute map contributor. |
Usage
Register the provider together with componenta/cqrs:
Use discovery attributes in application code:
In production, build-time maps should be generated and restored from cache. The app provider switches to plain runtime locators when the environment is production and compiled maps are available.
Optional Runtime Packages
Install separate packages for runtime concerns:
| Package | Adds |
|---|---|
componenta/cqrs-policy |
Command/query policy middleware. |
componenta/cqrs-retry |
Retry middleware. |
componenta/cqrs-lock |
Resource lock middleware. |
componenta/cqrs-transaction-cycle |
Cycle Database transaction middleware. |
componenta/cqrs-transport |
Async transport middleware, contracts, serializer, and worker. |
componenta/cqrs-transport-cycle |
Cycle Database transport implementation. |
componenta/cqrs-transport-console |
cqrs:worker Symfony Console command. |
All versions of cqrs-app with dependencies
componenta/app Version ^1.0
componenta/arrayable Version ^1.0
componenta/class-finder Version ^1.0
componenta/config Version ^1.0
componenta/cqrs Version ^1.0
componenta/cqrs-lock Version ^1.0
componenta/cqrs-policy Version ^1.0
componenta/cqrs-retry Version ^1.0
componenta/cqrs-transport Version ^1.0
componenta/tokenizer Version ^1.0
psr/container Version ^2.0