PHPackages                             fatcode/hydration - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. fatcode/hydration

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

fatcode/hydration
=================

Hydration/Extraction library for PHP7

1.0.0(7y ago)09MITPHPPHP &gt;=7.2.0

Since Apr 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fatcode/hydration)[ Packagist](https://packagist.org/packages/fatcode/hydration)[ RSS](/packages/fatcode-hydration/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Hydration [![Build Status](https://camo.githubusercontent.com/813fbfd68b1751068c70a0e131c07be83bd3ccf429060e2ea10b9dba9180dcd6/68747470733a2f2f7472617669732d63692e6f72672f666174636f64652f687964726174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fatcode/hydration) [![Maintainability](https://camo.githubusercontent.com/6200fa099a6757ae80ed5ff33242edeae22c697b28fc513599ebe83938f3edb3/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38306233303762366630333163653130386461392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/fatcode/hydration/maintainability) [![Test Coverage](https://camo.githubusercontent.com/fd0f7f0abeb45c1504b3a53b2aeec949cdb791da1cbba5bf604768365bf118ba/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38306233303762366630333163653130386461392f746573745f636f766572616765)](https://codeclimate.com/github/fatcode/hydration/test_coverage)
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#hydration---)

Installation
------------

[](#installation)

`composer require fatcode/hydration`

Hydration
---------

[](#hydration)

Hydration is a process of populating object from a set of data. Storage library provides mechanisms and interfaces for both hydrating and extracting data sets.

### Schemas

[](#schemas)

Schema is an object describing how dataset should be hydrated. Schemas should be registered in `\FatCode\Hydration\ObjectHydrator`, so your data can be easily hydrated/extracted.

```
