makinacorpus / generated-hydrator
An Object Hydrator that allows very fast array to object to array conversion
Installs: 2 195
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- laminas/laminas-hydrator: ^4.1.0
- nikic/php-parser: ^4.10.5
- ocramius/code-generator-utils: ^1.1.0
Requires (Dev)
- doctrine/coding-standard: ^8.2.0
- infection/infection: ^0.22.0
- laminas/laminas-filter: ^2.11.1
- laminas/laminas-servicemanager: ^3.6.4
- laminas/laminas-stdlib: ^3.2.1
- phpbench/phpbench: ^1.0
- phpunit/phpunit: ^9.5.4
- psalm/plugin-phpunit: ^0.12.2
- squizlabs/php_codesniffer: ^3.6.0
- vimeo/psalm: ^3.18
Replaces
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.