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
======================

1.1.0(1mo ago)05MITPHP

Since May 30Pushed 1mo agoCompare

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

READMEChangelog (4)Dependencies (8)Versions (8)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)

```
