PHPackages                             onemustwork/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. onemustwork/hydrator

Abandoned → [onemustcode/hydrator](/?search=onemustcode%2Fhydrator)Library[Utility &amp; Helpers](/categories/utility)

onemustwork/hydrator
====================

Easy to use hydrator to hydrate objects from an array or extract objects to an array.

v0.1.3(9y ago)057MITPHPPHP &gt;=5.6.4

Since Dec 19Pushed 9y agoCompare

[ Source](https://github.com/onemustwork/hydrator)[ Packagist](https://packagist.org/packages/onemustwork/hydrator)[ RSS](/packages/onemustwork-hydrator/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Hydrator
========

[](#hydrator)

Simple to use hydrator to hydrate an object from array or extract an object to an array.

Usage
-----

[](#usage)

To install the hydrator use the following command;

```
composer require onemustwork/hydrator

```

### Hydrating

[](#hydrating)

To hydrate an object you can use the hydrate method;

```
$object = new Object(); // The object to hydrate
$data = ['some_field' => 'some_value', 'boolean_field' => true];
$object = $hydrator->hydrate($object, $data);
```

### Extracting

[](#extracting)

To extract an entity to an array you can use the extract method;

```
$array = $hydrator->extract($object);
```

### Todo

[](#todo)

- Add strategies
- Add unit tests

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~7 days

Total

4

Last Release

3461d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21082283?v=4)[Jeffrey Buitenhuis](/maintainers/onemustwork)[@onemustwork](https://github.com/onemustwork)

---

Top Contributors

[![onemustwork](https://avatars.githubusercontent.com/u/21082283?v=4)](https://github.com/onemustwork "onemustwork (6 commits)")

---

Tags

arrayobjectSimplehydrator

### Embed Badge

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

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

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M331](/packages/api-platform-core)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[api-platform/symfony

Symfony API Platform integration

384.5M123](/packages/api-platform-symfony)[api-platform/serializer

API Platform core Serializer

274.8M84](/packages/api-platform-serializer)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k17](/packages/solspace-craft-freeform)[api-platform/openapi

Models to build and serialize an OpenAPI specification.

404.8M89](/packages/api-platform-openapi)

PHPackages © 2026

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