componenta / cqrs-transport
Async transport middleware and contracts for Componenta CQRS commands
v1.0.0
2026-06-21 11:53 UTC
Requires
- php: >=8.4
- componenta/config: ^1.0
- componenta/cqrs: ^1.0
- psr/container: ^2.0
- psr/log: ^3.0
Requires (Dev)
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.0
README
Async transport middleware, transport contracts, JSON command serializer, registry, and worker for componenta/cqrs commands marked with #[Async].
composer require componenta/cqrs-transport
Register the provider and configure TransportRegistryInterface and CommandSerializerInterface in the container.
return [ new Componenta\CQRS\ConfigProvider(), new Componenta\CQRS\Transport\ConfigProvider(), ];
The package provides:
Componenta\CQRS\Command\Middleware\TransportMiddlewareComponenta\CQRS\Command\Transport\TransportInterfaceComponenta\CQRS\Command\Transport\TransportRegistryInterfaceComponenta\CQRS\Command\Transport\CommandSerializerInterfaceComponenta\CQRS\Command\Transport\CommandWorker
For a Cycle Database transport, install componenta/cqrs-transport-cycle. For the Symfony Console worker command, install componenta/cqrs-transport-console.