Download the PHP package webware/command-bus without Composer
On this page you can find all versions of the php package webware/command-bus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webware/command-bus
More information about webware/command-bus
Files in webware/command-bus
Download webware/command-bus
More information about webware/command-bus
Files in webware/command-bus
Vendor webware
Package command-bus
Short Description CommandBus for Mezzio
License BSD-3-Clause
Homepage https://github.com/tyrsson/command-bus/discussions
Package command-bus
Short Description CommandBus for Mezzio
License BSD-3-Clause
Homepage https://github.com/tyrsson/command-bus/discussions
Please rate this library. Is it a good library?
Informations about the package command-bus
CommandBus Documentation
A Command Bus implementation for Mezzio applications, providing a clean way to handle commands through a middleware pipeline.
Table of Contents
Core Components
- CommandBus - The main command bus implementation
- CommandBusInterface - Command bus contract
- MiddlewarePipe - Middleware pipeline management
- MiddlewarePipelineInterface - Pipeline contract
- ConfigProvider - Laminas configuration provider
- Next - Pipeline delegation helper
Interfaces
- CommandInterface - Command contract
- CommandHandlerInterface - Handler contract
- MiddlewareInterface - Middleware contract
Container Factories
- CommandBusFactory - Service factory for CommandBus
- CommandHandlerMiddlewareFactory - Factory for CommandHandlerMiddleware
- MiddlewarePipeFactory - Factory for MiddlewarePipe
Middleware
- PreCommandHandlerMiddleware - Middleware for pre-processing commands
- CommandHandlerMiddleware - Final middleware for command execution
- PostCommandHandlerMiddleware - Middleware for post-processing results
Handlers
- EmptyPipelineHandler - Default handler for empty pipelines
Exceptions
- CommandException - Base command exception
- InvalidConfigurationException - Configuration errors
- NextHandlerAlreadyCalledException - Pipeline state errors
- ServiceNotFoundException - Service resolution errors
Getting Started
For a comprehensive guide to installation, configuration, and usage, see the docs directory.
Quick Start
Installation
Basic Configuration
Usage in Mezzio
Architecture Overview
The CommandBus library follows these key principles:
- Commands are data objects that implement
CommandInterface - Handlers process commands and implement
CommandHandlerInterface - Middleware can intercept and potentially modify command processing
- Pipeline manages middleware execution order
- Factory classes integrate with Laminas ServiceManager/ Psr\Container\ContainerInterface
Contributing
See the project repository for contribution guidelines and development setup instructions.
All versions of command-bus with dependencies
PHP Build Version
Package Version
Requires
php Version
~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
beberlei/assert Version ^3.3
psr/container Version ^2.0
beberlei/assert Version ^3.3
psr/container Version ^2.0
The package webware/command-bus contains the following files
Loading the files please wait ...