PHPackages                             widefocus/magento-zend-hydrator-adapter - 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. widefocus/magento-zend-hydrator-adapter

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

widefocus/magento-zend-hydrator-adapter
=======================================

A bridge to use the Zend Hydrator implementation instead of the Magento2 implementation.

1.1.0(9y ago)03[1 issues](https://github.com/WideFocus/MagentoZendHydratorAdapter/issues)MITPHPPHP ^7.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/WideFocus/MagentoZendHydratorAdapter)[ Packagist](https://packagist.org/packages/widefocus/magento-zend-hydrator-adapter)[ RSS](/packages/widefocus-magento-zend-hydrator-adapter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (4)Used By (0)

WideFocus Magento Zend Hydrator Adapter
=======================================

[](#widefocus-magento-zend-hydrator-adapter)

An adapter to use the Zend Hydrator implementation instead of the Magento2 implementation.

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

[](#installation)

Use composer to install the package.

```
$ composer require widefocus/magento-zend-hydrator-adapter
```

Usage
-----

[](#usage)

The hydrator implementation in Magento 2.1 works alright with models that do not contain any objects. But when a model uses for example `DateTimeInterface` exceptions occur.

This package solves that by making it possible to use the Zend Framework Hydrator.

Example class to be hydrated:

```
