PHPackages                             awd-studio/command-bus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. awd-studio/command-bus

Abandoned → [awd-studio/service-buses](/?search=awd-studio%2Fservice-buses)Library[Utility &amp; Helpers](/categories/utility)

awd-studio/command-bus
======================

A command bus definition

04PHP

Since Mar 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/awd-studio/command-bus)[ Packagist](https://packagist.org/packages/awd-studio/command-bus)[ RSS](/packages/awd-studio-command-bus/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

AWD Command Bus
===============

[](#awd-command-bus)

Provides a simple implementation of the Command bus pattern.

### Install

[](#install)

```
composer require awd-studio/command-bus
```

### Usage

[](#usage)

- Implement a `\AwdStudio\CommandBus\Handler\HandlersCollection` (or use a defined one - `\AwdStudio\CommandBus\Simple\ArrayCollection`)
- Register there all off handlers (must implement `AwdStudio\CommandBus\Handler\CommandHandler` interface)
- And then - you'll be able to use the bus (`AwdStudio\CommandBus\CommandBus`):

```
