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
Requires
- php: >=5.5|^7|^8
Requires (Dev)
- phpunit/phpunit: 4 - 9
- squizlabs/php_codesniffer: >=3
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