Introduction
Hydrators insert an array of data into object properties (this is called "hydrating") and convert object properties back to an array (this is called "extracting"). Hydrators are often used in the context of Forms, with the binding functionality of Laminas, but can also be used in any hydrating/extracting context (for instance, it can be used in RESTful context). For an introduction to hydrators, please read Laminas hydrator documentation.
Installation
Run the following to install this library:
$ composer require doctrine/doctrine-laminas-hydrator
Next Steps
- Basic Usage: introduces the basic usage of Doctrine Laminas Hydrator.
- Collections Strategy: explains using strategies for hydrating or extracting collections.
- enum-strategy: this sections shows an example how PHP enums can be handled using strategies.
- By Value or By Reference: shows the differences of by-value and by-reference extraction or hydration of data.
- Laminas Form: this section shows usage examples with the Laminas form library.
- Performance Considerations: some remarks to consider for keeping your application performant.