PHPackages                             andrewdevelop/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. [CLI &amp; Console](/categories/cli)
4. /
5. andrewdevelop/command-bus

ActivePackage[CLI &amp; Console](/categories/cli)

andrewdevelop/command-bus
=========================

A simple command bus for Lumen

2.0.0(4y ago)01.1k[1 PRs](https://github.com/andrewdevelop/command-bus/pulls)MITPHPPHP ^8.0.2

Since Aug 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andrewdevelop/command-bus)[ Packagist](https://packagist.org/packages/andrewdevelop/command-bus)[ RSS](/packages/andrewdevelop-command-bus/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

andrewdevelop/command-bus
=========================

[](#andrewdevelopcommand-bus)

This is a command bus library for Lumen or Laravel 6+. The package provides infrastructure to execute reusable commands in your application: HTTP controllers, CLI, queues, etc., also it makes your code more readable and well organized. The service executes the required Command using in a Command Handler using a simple naming convention.

Installation
------------

[](#installation)

Package is available on Packagist. To install, just run:

```
composer require andrewdevelop/command-bus

```

Setup
-----

[](#setup)

Simply add this to your `/bootstrap/app.php` file:

```
$app->register(Core\Command\CommandBusServiceProvider::class);
```

Usage
-----

[](#usage)

Consider using the command bus in a basic controller:

```
