Download the PHP package netmex/hydrator-bundle without Composer
On this page you can find all versions of the php package netmex/hydrator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package hydrator-bundle
Netmex HydratorBundle
About
The Netmex HydratorBundle is a Symfony bundle designed to simplify the process of hydrating data transfer objects (DTOs) from arrays or JSON inputs with built-in support for data transformation and validation using Symfony constraints.
It enables you to:
- Define mappers that transform and validate input data.
- Easily create reusable transformers to convert raw data (e.g., capitalization, formatting).
- Handle validation errors gracefully.
- Integrate seamlessly into Symfony controllers for clean and maintainable code.
Installation
Usage
Create a mapper class that implements .
Example Hydrator
Create a Transformer
Injecting the Mapper into a Controller
Recommended Directory Layout
Exception Handling
More about Constraints
See Symfony Validation Constraints for available options.
All versions of hydrator-bundle with dependencies
PHP Build Version
Package Version
Requires
symfony/framework-bundle Version
^7.2
symfony/validator Version ^7.2
symfony/serializer-pack Version ^1.3
symfony/validator Version ^7.2
symfony/serializer-pack Version ^1.3
The package netmex/hydrator-bundle contains the following files
Loading the files please wait ...