Dt0 is a PHP implementation of a DTO that can both secure mutability and implement convenient ways to take control over input and output in various formats.
MIT License
Strongly typed hydrator (mapper, populator) for PHP 7.4+ with extensibility
Laravel Data-Transfer-Object
🐘 Generates neat PHP code for you. Supports new PHP 8.3 features.
PHP properties implementation
PHP Class to easily cast variables to a specific type.
📐 Validating data structures against a given Schema.
Immutable object library for PHP
🎭 Basic type-casting functionality for PHP.
Provides a convenient way to cast and transform your models for API purposes.