PHPackages                             makinacorpus/generated-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. makinacorpus/generated-hydrator

Abandoned → [ocramius/generated-hydrator](/?search=ocramius%2Fgenerated-hydrator)Library[Parsing &amp; Serialization](/categories/parsing)

makinacorpus/generated-hydrator
===============================

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

4.1.1(4y ago)02.2k1MITPHPPHP &gt;=7.4CI failing

Since Jul 11Pushed 4y ago11 watchersCompare

[ Source](https://github.com/makinacorpus/generated-hydrator)[ Packagist](https://packagist.org/packages/makinacorpus/generated-hydrator)[ Docs](https://github.com/Ocramius/GeneratedHydrator)[ RSS](/packages/makinacorpus-generated-hydrator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (13)Versions (27)Used By (1)

Generated Hydrator
==================

[](#generated-hydrator)

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](https://github.com/Ocramius/GeneratedHydrator)all credits goes to Marco Pivetta, original author of this library. This project will remain API compatible with it.

Status
======

[](#status)

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

The only difference compared to upstream [ocramius/generated-hydrator](https://github.com/Ocramius/GeneratedHydrator)is that some dependencies constraints have been relaxed in order to support installation on PHP 8.

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

History
=======

[](#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](https://github.com/Ocramius/GeneratedHydrator)instead, and if you wish to integrate it with Symfony, please consider using [makinacorpus/generated-hydrator-bundle](https://github.com/makinacorpus/generated-hydrator-bundle).

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

Description
===========

[](#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
-------

[](#version)

- **For PHP &gt;= 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.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 89.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~125 days

Total

26

Last Release

1801d ago

Major Versions

0.1.1 → 1.0.02013-07-27

1.2.0 → 2.0.02016-01-12

2.0.6 → 3.0.02019-07-17

3.1.x-dev → 4.0.02020-07-17

PHP version history (9 changes)0.1.0PHP &gt;=5.4

0.1.1PHP &gt;=5.3.3

1.0.3PHP ~5.4

1.2.0PHP ~5.4|~7.0

2.0.0PHP ~7.0

2.0.1PHP &gt;=5.6

3.0.0PHP ~7.2

4.0.0PHP ^7.4.7

4.1.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d21b98752b406528da88850922b1061f39bf72eb2126b413d5c12e275811a40b?d=identicon)[Makina Corpus](/maintainers/Makina%20Corpus)

---

Top Contributors

[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (443 commits)")[![pounard](https://avatars.githubusercontent.com/u/341855?v=4)](https://github.com/pounard "pounard (26 commits)")[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (7 commits)")[![haampie](https://avatars.githubusercontent.com/u/194764?v=4)](https://github.com/haampie "haampie (5 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (3 commits)")[![SimonMellerin](https://avatars.githubusercontent.com/u/29925135?v=4)](https://github.com/SimonMellerin "SimonMellerin (2 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (1 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (1 commits)")[![siwinski](https://avatars.githubusercontent.com/u/1034024?v=4)](https://github.com/siwinski "siwinski (1 commits)")[![ThaDafinser](https://avatars.githubusercontent.com/u/533017?v=4)](https://github.com/ThaDafinser "ThaDafinser (1 commits)")[![krymen](https://avatars.githubusercontent.com/u/439196?v=4)](https://github.com/krymen "krymen (1 commits)")[![leedavis81](https://avatars.githubusercontent.com/u/624973?v=4)](https://github.com/leedavis81 "leedavis81 (1 commits)")[![magnusnordlander](https://avatars.githubusercontent.com/u/165002?v=4)](https://github.com/magnusnordlander "magnusnordlander (1 commits)")[![michaelmoussa](https://avatars.githubusercontent.com/u/183833?v=4)](https://github.com/michaelmoussa "michaelmoussa (1 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (1 commits)")

---

Tags

performanceserializerhydratorarray conversionobject conversion

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/makinacorpus-generated-hydrator/health.svg)

```
[![Health](https://phpackages.com/badges/makinacorpus-generated-hydrator/health.svg)](https://phpackages.com/packages/makinacorpus-generated-hydrator)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[laminas/laminas-hydrator

Serialize objects to arrays, and vice versa

12916.8M146](/packages/laminas-laminas-hydrator)[goetas-webservices/xsd2php

Convert XSD (XML Schema) definitions into PHP classes and JMS metadata

2411.6M36](/packages/goetas-webservices-xsd2php)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4910.9M34](/packages/goetas-webservices-xsd2php-runtime)[flix-tech/avro-serde-php

A library to serialize and deserialize Avro records making use of the confluent schema registry

674.0M17](/packages/flix-tech-avro-serde-php)[laminas/laminas-serializer

Serialize and deserialize PHP structures to a variety of representations

3411.2M115](/packages/laminas-laminas-serializer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
