PHPackages                             bairwell/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. bairwell/hydrator

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

bairwell/hydrator
=================

An annotation based Hydrator system

v0.6.3(9y ago)0119[7 issues](https://github.com/bairwell/hydrator/issues)MITPHPPHP &gt;=7.0.0

Since Jan 21Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (10)Used By (0)

Bairwell\\Hydrator
==================

[](#bairwellhydrator)

[![Latest Stable Version](https://camo.githubusercontent.com/fd184471b320b041a7016315a3bc000d45be343e533422b8dcc85075e1f17a84/68747470733a2f2f706f7365722e707567782e6f72672f6261697277656c6c2f6879647261746f722f762f737461626c65)](https://packagist.org/packages/bairwell/hydrator)[![License](https://camo.githubusercontent.com/4797014154007c0927904dec1b2b9db248e27f311fed95a3dcad1d0051491955/68747470733a2f2f706f7365722e707567782e6f72672f6261697277656c6c2f6879647261746f722f6c6963656e7365)](https://packagist.org/packages/bairwell/hydrator)[![Coverage Status](https://camo.githubusercontent.com/24104acdd98ac91ab45cbbe348989fccb223970bacc7a960a76dfd9a271da195/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6261697277656c6c2f6879647261746f722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/bairwell/hydrator?branch=master)[![Build Status](https://camo.githubusercontent.com/09cb34b36d63c4cdb441b5251db66568830428c8bc4b1b6e7d7bc2830d43815d/68747470733a2f2f7472617669732d63692e6f72672f6261697277656c6c2f6879647261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bairwell/hydrator)[![Total Downloads](https://camo.githubusercontent.com/0e5b6edb06a26351df32511f7b21297bc60c4a7df95ad97132714f247134d8bc/68747470733a2f2f706f7365722e707567782e6f72672f6261697277656c6c2f6879647261746f722f646f776e6c6f616473)](https://packagist.org/packages/bairwell/hydrator)

This is a PHP 7 [Composer](https://getcomposer.org/) compatible library for providing an annotation based hydration facility.

WARNING
=======

[](#warning)

This code is currently ALPHA standard - it has had limited testing and is still under active development.

UNIT TESTS ARE CURRENTLY BROKEN.

Standards
---------

[](#standards)

The following [PHP FIG](http://www.php-fig.org/psr/) standards should be followed:

- [PSR 1 - Basic Coding Standard](http://www.php-fig.org/psr/psr-1/)
- [PSR 2 - Coding Style Guide](http://www.php-fig.org/psr/psr-2/)
- [PSR 3 - Logger Interface](http://www.php-fig.org/psr/psr-3/)
- [PSR 4 - Autoloading Standard](http://www.php-fig.org/psr/psr-4/)
- [PSR 5 - PHPDoc Standard](https://github.com/phpDocumentor/fig-standards/tree/master/proposed) - (still in draft)
- [PSR 12 - Extended Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md) - (still in draft)

### Standards Checking

[](#standards-checking)

[PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer/) highlights potential coding standards issues.

`vendor/bin/phpcs`

PHP CS will use the configuration in `phpcs.xml.dist` by default.

To see which sniffs are running add "-s"

Unit Tests
----------

[](#unit-tests)

[PHPUnit](http://phpunit.de) is installed for unit testing (tests are in `tests`)

To run unit tests: `vendor/bin/phpunit`

For a list of the tests that have ran: `vendor/bin/phpunit --tap`

To restrict the tests run: `vendor/bin/phpunit --filter 'Cors\\Exceptions\\BadOrigin'`

or just

`vendor/bin/phpunit --filter 'ExceptionTest'`

for all tests which have "Exception" in them and: `vendor/bin/phpunit --filter '(ExceptionTest::testEverything|ExceptionTest::testStub)'`

to test the two testEverything and testStub methods in the ExceptionTest class.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~26 days

Recently: every ~48 days

Total

9

Last Release

3602d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16501974?v=4)[Bairwell Ltd](/maintainers/bairwell)[@bairwell](https://github.com/bairwell)

---

Top Contributors

[![rbairwell](https://avatars.githubusercontent.com/u/775269?v=4)](https://github.com/rbairwell "rbairwell (9 commits)")

---

Tags

annotationshydratorhydration

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k365.0M3.1k](/packages/symfony-cache)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[api-platform/metadata

API Resource-oriented metadata attributes and factories

244.5M182](/packages/api-platform-metadata)[ec-cube/ec-cube

EC-CUBE EC open platform.

78727.2k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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