PHPackages                             disasterdrop/silex-simple-bus-provider - 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. [API Development](/categories/api)
4. /
5. disasterdrop/silex-simple-bus-provider

ActiveLibrary[API Development](/categories/api)

disasterdrop/silex-simple-bus-provider
======================================

Silex Provider for Command bus and Event bus Features with the SimpleBus/MessageBus

v1.0(8y ago)0922MITPHPPHP ^5.5 || ^7.0

Since Sep 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/disasterdrop/silex-simple-bus-provider)[ Packagist](https://packagist.org/packages/disasterdrop/silex-simple-bus-provider)[ RSS](/packages/disasterdrop-silex-simple-bus-provider/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Readme
======

[](#readme)

By Sebastian Hübner

This is an Silex Provider for the [SimpleBus/MessageBus](https://simplebus.github.io/MessageBus/) by Matthias Noback

With this Provider you can register new Events and CommandHandlers within your silex application.

Event Bus
---------

[](#event-bus)

### Register Event Bus

[](#register-event-bus)

```
$app->register(new \Disasterdrop\SimpleBusProvider\Provider\EventBusProvider());

```

### Add Subscriber to the Event Bus

[](#add-subscriber-to-the-event-bus)

```
// Event Bus
$app['eventSubscribers'] = function ($app) {
    $subscribers = [
        SomeEventHappens::class => [
            function ($message) use ($app) {
                $eventSubscriber = new SomeEventHappens($app['someService']);
                return $eventSubscriber->notify($message);
            }
        ]
    ];
    return $subscribers;
};

```

Command Handler
---------------

[](#command-handler)

### Register Command Handler

[](#register-command-handler)

```
$app->register(new Disasterdrop\SimpleBusProvider\Provider\CommandBusProvider());

```

### Add Handlers to the Command Bus

[](#add-handlers-to-the-command-bus)

```
// Command Bus
$app['commandHandlers'] = function ($app) {
    $handlers = [
        SomeCommand::class => function ($command) use ($app) {
            $commandHandler = new SomeCommandHandler($app['pollWriteRepository'], $app['eventBus']);
            return $commandHandler->handle($command);
        },
    ];
    return $handlers;
};

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b9c5d817ec7e82c93a94fc45b23f78c790b5087808fda95d1696da9ba433bc4?d=identicon)[disasterdrop](/maintainers/disasterdrop)

---

Top Contributors

[![disasterdrop](https://avatars.githubusercontent.com/u/472591?v=4)](https://github.com/disasterdrop "disasterdrop (1 commits)")

---

Tags

eventssilexcommandbuscommandsSimpleBuseventbusmessagebus

### Embed Badge

![Health badge](/badges/disasterdrop-silex-simple-bus-provider/health.svg)

```
[![Health](https://phpackages.com/badges/disasterdrop-silex-simple-bus-provider/health.svg)](https://phpackages.com/packages/disasterdrop-silex-simple-bus-provider)
```

###  Alternatives

[mpociot/captainhook

Add webhooks to your Laravel app.

3358.9k](/packages/mpociot-captainhook)[keen-io/keen-io-bundle

Symfony Bundle for Keen IO

16488.5k](/packages/keen-io-keen-io-bundle)[tobiassjosten/facebook-service-provider

Silex ServiceProvider for the Facebook SDK

266.1k](/packages/tobiassjosten-facebook-service-provider)[there4/php-analytics-event

Send Google Analytics events from PHP

2441.1k](/packages/there4-php-analytics-event)[lisennk/laravel-slack-events-api

Slack Events API for Laravel 5, 6, 7 and 8

3911.4k](/packages/lisennk-laravel-slack-events-api)[calendart/calendart

Manage remote calendars through an unified api

1920.1k2](/packages/calendart-calendart)

PHPackages © 2026

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