PHPackages                             fidesio/annotation-aware-hydrator - 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. fidesio/annotation-aware-hydrator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fidesio/annotation-aware-hydrator
=================================

Hydrator/Extractor for PHP with annotation support.

0136PHP

Since Nov 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/fidesio/AnnotationAwareHydrator)[ Packagist](https://packagist.org/packages/fidesio/annotation-aware-hydrator)[ RSS](/packages/fidesio-annotation-aware-hydrator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Annotation Aware Hydrator A hydrator/extract for php objects to arrays that uses filters and modifiers through annotations.

\##What? Converting arrays to objects (hydrating) and objects to arrays (extracting). While selecting only the properties/values you want, ignoring the rest.

\##Why? Because it's nice to keep this information with the object instead of writing that logic somewhere in a service. Like Doctrine uses @Column to indicate a property has to be written to the database. This library uses @Extract and @Hydrate to indicate you want the property hydrated or extracted.

\##Installing This package has not been submitted to packagist.org (yet). You can load it with composer using these steps: The package name is: "flip111/annotation-aware-hydrator"

\##How?

Add the annotations to your object properties.

```
