PHPackages                             netmex/hydrator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. netmex/hydrator-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

netmex/hydrator-bundle
======================

0.2.0(11mo ago)00MITPHP

Since May 30Pushed 11mo agoCompare

[ Source](https://github.com/netmexmedia/HydratorBundle)[ Packagist](https://packagist.org/packages/netmex/hydrator-bundle)[ RSS](/packages/netmex-hydrator-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Netmex HydratorBundle
=====================

[](#netmex-hydratorbundle)

About
-----

[](#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
------------

[](#installation)

```
composer require netmex/hydrator-bundle
```

Usage
-----

[](#usage)

Create a mapper class that implements `Netmex\HydratorBundle\Contracts\MapperDefinitionInterface`.

##### Example Hydrator

[](#example-hydrator)

```
