thesis / message
Thesis Message
Fund package maintenance!
www.tinkoff.ru/cf/5MqZQas2dk7
0.4.0
2025-07-16 22:53 UTC
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, ) {} }