PHPackages                             mmalessa/command-bus-bundle - 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. mmalessa/command-bus-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

mmalessa/command-bus-bundle
===========================

Simple library to implement command-bus.

v1.2(6y ago)013MITPHPPHP &gt;=7.2

Since Aug 25Pushed 6y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Command bus - Symfony bundle
============================

[](#command-bus---symfony-bundle)

Requires Symfony 4.3.\*

Use it at your own risk.

Install
=======

[](#install)

```
composer req mmalessa/command-bus-bundle
```

Example of use
==============

[](#example-of-use)

Register your handler(s)
------------------------

[](#register-your-handlers)

```
services:
    App\Application\CommandBus\TestCommandHandler:
        tags:
            - { name: mmalessa.command_handler }
```

The command class is automatically detected based on the type of parameter in the handler 'handle' method.

Create command and handler
--------------------------

[](#create-command-and-handler)

(See - README for the mmalessa/command-bus package.)

Inject command bus into Symfony command/controller
--------------------------------------------------

[](#inject-command-bus-into-symfony-commandcontroller)

```
use Mmalessa/CommandBus/CommandBus
public function __construct(CommandBus $commandBus)
// [...]
```

Handle command
--------------

[](#handle-command)

```
$command = TestCommand::create(1, 'Silifon');
$this->commandBus->handle($command);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

2495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/002ff67dd90c9245daea55d065039f10790fd1c46d1b016ad120b761da294b8f?d=identicon)[mmalessa](/maintainers/mmalessa)

---

Top Contributors

[![mmalessa](https://avatars.githubusercontent.com/u/3789506?v=4)](https://github.com/mmalessa "mmalessa (10 commits)")

---

Tags

command buscommand bus bundle

### Embed Badge

![Health badge](/badges/mmalessa-command-bus-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mmalessa-command-bus-bundle/health.svg)](https://phpackages.com/packages/mmalessa-command-bus-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[league/tactician

A small, flexible command bus. Handy for building service layers.

86515.8M135](/packages/league-tactician)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
