serializer
php-dto
Our great sponsors
serializer | php-dto | |
---|---|---|
2 | 3 | |
2,448 | 37 | |
0.8% | - | |
8.8 | 0.0 | |
about 19 hours ago | about 2 years ago | |
PHP | PHP | |
MIT License | MIT License |
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.
serializer
- Data-Mapper: A package for fast mapping of strong-typed objects
-
brick/json-mapper: map JSON data to strongly typed PHP DTOs
Most notable differences with symfony/serializer:
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
What are some alternatives?
Valinor - PHP library that helps to map any input into a strongly-typed value object structure.
data-transfer-object - Data transfer objects with batteries included
Serializer - Library for (de-)serializing data of any complexity (supports JSON, and XML)
Fractal - Output complex, flexible, AJAX/RESTful data structures.
laravel-validated-dto - Data Transfer Objects with validation for Laravel applications
doctrine-laminas-hydrator - Doctrine hydrators for Laminas applications
request-dto-mapper-bundle - This bundle provides an easy way to automatically map the incoming request data to a DTO and optionally validate it.
psalm-plugin-doctrine - Stubs to let Psalm understand Doctrine better
dto - Simplistic, flexible Data Transfer Object library
ObjectHydrator - Object Hydration library to create Command and Query objects.
RapidFormBundle - Create Symfony forms at record speed using PHP 8 attributes!