PHPackages                             final-gene/zf-hal-hydrator-module - 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. final-gene/zf-hal-hydrator-module

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

final-gene/zf-hal-hydrator-module
=================================

ZF-HAL specific hydrator

1.0.0(10y ago)05051proprietaryPHP

Since Dec 23Pushed 7y agoCompare

[ Source](https://github.com/final-gene/zf2-hal-hydrator-module)[ Packagist](https://packagist.org/packages/final-gene/zf-hal-hydrator-module)[ RSS](/packages/final-gene-zf-hal-hydrator-module/feed)WikiDiscussions master Synced today

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

ZF-HAL-Hydrator-Module
======================

[](#zf-hal-hydrator-module)

Introduction
------------

[](#introduction)

This module provides a hydrator which can be used to manual map the name of REST-Entity classes to custom keys.

Installation
------------

[](#installation)

### Install the package

[](#install-the-package)

Run in your shell:

```
$ composer require "final-gene/zf-hal-hydrator-module"

```

### Load the module

[](#load-the-module)

Add the key `FinalGene\ZfHalHydratorModule` in your `application.config.php`

### Configure the ZF-Hal hydrator

[](#configure-the-zf-hal-hydrator)

```
'zf-hal' => [
    'renderer' => [
        'default_hydrator' => 'FinalGene\ZfHalHydratorModule\RestEntityHydrator'
    ]
],
```

Or configure the hydrator for specific class types via the `metadata_map` key ([documentation](https://github.com/zfcampus/zf-hal#key-metadata_map)) (sub-key `hydrator`). Look at the documentation of zf-hal for further details.

Configuration
-------------

[](#configuration)

### User Configuration

[](#user-configuration)

The top-level key used to configure this module is `zf-hal-hydrator-module`.

#### Key: `map`

[](#key-map)

An array of class names (key) and their intended name in the output (value).

#### User configuration example:

[](#user-configuration-example)

```
'map' => [
    'FinalGene\FooModule\Rest\Entity\BarEntity' => 'final-gene:foo-bar'
]
```

### System Configuration

[](#system-configuration)

```
'service_manager' => [
    'factories' => [
        'FinalGene\ZfHalHydratorModule\ModuleOptions' => 'FinalGene\ZfHalHydratorModule\Options\ModuleOptionsFactory'
    ],
],
'hydrators' => [
    'factories' => [
        'FinalGene\ZfHalHydratorModule\RestEntityHydrator' => 'FinalGene\ZfHalHydratorModule\Hydrator\HalEntityHydratorFactory'
    ],
],
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8856d4139fd7a0f97990a243ba922724ff0f93490d5cf3442e470ef0595f9e7e?d=identicon)[FrankGiesecke](/maintainers/FrankGiesecke)

---

Top Contributors

[![FrankGiesecke](https://avatars.githubusercontent.com/u/4430040?v=4)](https://github.com/FrankGiesecke "FrankGiesecke (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/final-gene-zf-hal-hydrator-module/health.svg)

```
[![Health](https://phpackages.com/badges/final-gene-zf-hal-hydrator-module/health.svg)](https://phpackages.com/packages/final-gene-zf-hal-hydrator-module)
```

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[bitweb/zf2-cron-module

BitWeb ZF2 module for cron.

1341.6k](/packages/bitweb-zf2-cron-module)

PHPackages © 2026

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