event-engine/php-data
Immutable PHP value objects and data containers for event-driven apps. Provides typed properties, casting, validation, and convenient hydration from arrays/JSON, plus serialization back to payloads—useful for messages, commands, events, and read models in Event Engine setups.
Generate Immutable Objects with ease!

composer require event-engine/php-data
The EventEngine\Data package contains a set of live templates specifically designed to work together with the EventEngine\Data\ImmutableRecord.
You can import the templates by following official PHPStorm instructions.
Please find the settings.zip here.
Usage is described in the documentation
How can I help you explore Laravel packages today?