makinacorpus/generated-hydrator

This package is abandoned and no longer maintained. The author suggests using the ocramius/generated-hydrator package instead.

An Object Hydrator that allows very fast array to object to array conversion

4.1.1 2021-06-04 07:23 UTC

README

GeneratedHydrator is a library about high performance transition of data from arrays to objects and from objects to arrays.

This project was forked from ocramius/generated-hydrator all credits goes to Marco Pivetta, original author of this library. This project will remain API compatible with it.

Status

Current 4.2.x branch exists only for PHP 8 support.

The only difference compared to upstream ocramius/generated-hydrator is that some dependencies constraints have been relaxed in order to support installation on PHP 8.

Once https://github.com/Ocramius/GeneratedHydrator/issues/159 will be fixed, this project will be abandonned, once again.

History

Time has passed, and PHP 5.6 is not supported anywhere anymore, as a consequence this package is not supported anymore.

Please use ocramius/generated-hydrator instead, and if you wish to integrate it with Symfony, please consider using makinacorpus/generated-hydrator-bundle.

This package may if necessary receive some updates, for bugfixes and security fixes.

Description

Differences are:

  • it does not use nikic/php-parser dependency, which causes us serious dependency hell on many projects,

  • it does not use ocramius/code-generator-utils for the very same reason,

  • code is much more shorted and faster for hydrator class generation, and simpler to maintain in time,

  • we needed at some point PHP 5.6 compatibility, this package temporarily restores it, and will dropped again in late 2019.

Apart from those few differences, generated hydrator code remain the same and perform equivalently.

Version

  • For PHP >= 7.4 please use ocramius/generated-hydrator instead.
  • 3.0 (master branch) is PHP 7.2 and 7.3 compatible.
  • 2.x (2.0 branch is for PHP 5.6 and compatible and is now deprecated and unmaintained.
  • 1.x is deprecated and unmaintained.