Skip to content

slava-basko/bus-php

Repository files navigation

Command Bus

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('[email protected]', 'secure-password'))

Install

composer require slava-basko/bus-php

About

Command Bus

Resources

Stars

Watchers

Forks

Packages

No packages published