thesis / message
Thesis Message
Fund package maintenance!
www.tinkoff.ru/cf/5MqZQas2dk7
Installs: 1 046
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
pkg:composer/thesis/message
Requires
- php: ^8.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
README
This package provides four interfaces for messaging: Message
, Command
, Event
and Call
.
Installation
composer require thesis/message
Usage
use Thesis\Message\Call; use Thesis\Message\Command; use Thesis\Message\Event; final readonly class RegisterUser implements Command { public function __construct( public Uuid $userId, public string $name, ) {} } final readonly class UserRegistered implements Event { public function __construct( public Uuid $userId, ) {} } /** * @implements Call<string> */ final readonly class GetUserName implements Call { public function __construct( public Uuid $userId, ) {} }