slava-basko/bus-php

Command Bus

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/slava-basko/bus-php

2.1.0 2025-10-08 04:06 UTC

This package is auto-updated.

Last update: 2025-10-08 04:06:33 UTC


README

For those who understand what it is and strive for simplicity.

Don't know what it is? Read this article (link to my blog).

Zero dependencies and PHP 5.5+.

$bus = CommandBus::create([
    UserRegistrationCommand::class => new UserRegistrationCommandHandler(),
]);

$bus->handle(new UserRegistrationCommand('john.doe@example.com', 'secure-password'))

Install

composer require slava-basko/bus-php