php-dto
dto
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
php-dto
-
Restricting ORM objects to repository classes and DTOs
I'm not sure there's a one-size-fits-all solution here, but there are a bunch of DTO packages that make converting simple. I'm particularly intrigued by this one though I haven't actually tried it in anger. A lot of it seems to reinvent Symfony+Doctrine features like model validation, but it's more general and not tied to those frameworks.
-
A PHP package to create reusable data definitions
Oh, nice, I like that. It feels kind of familiar to my DTO package. (https://github.com/Dgame/php-dto). I'm looking forward to trying it out.
- Yet another Data-Transfer-Object package
dto
What are some alternatives?
data-transfer-object - Data transfer objects with batteries included
laravel-settings - Store strongly typed application settings
Serializer - Library for (de-)serializing data of any complexity (supports JSON, and XML)
Symfony - The Symfony PHP framework
laravel-validated-dto - Data Transfer Objects with validation for Laravel applications
serializer - Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
Laravel - The Laravel Framework.
request-dto-mapper-bundle - This bundle provides an easy way to automatically map the incoming request data to a DTO and optionally validate it.
data-transformer - Zero-dependency PHP array-to-object transformer
RapidFormBundle - Create Symfony forms at record speed using PHP 8 attributes!