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

ActiveSymfony-bundle

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 4d 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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2448d 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

[league/tactician

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

86415.4M127](/packages/league-tactician)[simple-bus/message-bus

Generic classes and interfaces for messages and message buses

3455.7M30](/packages/simple-bus-message-bus)[simple-bus/symfony-bridge

Bridge for using command buses and event buses in Symfony projects

1314.3M19](/packages/simple-bus-symfony-bridge)[league/tactician-doctrine

Plugins for Tactician commands using Doctrine, like wrapping every command in a transaction

583.1M9](/packages/league-tactician-doctrine)[simple-bus/asynchronous-bundle

Symfony bundle for using SimpleBus/Asynchronous

241.2M6](/packages/simple-bus-asynchronous-bundle)[trntv/yii2-command-bus

Yii2 Command Bus extension

57625.1k8](/packages/trntv-yii2-command-bus)

PHPackages © 2026

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