PHPackages                             heterogeny/heterogeny-php - 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. heterogeny/heterogeny-php

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

heterogeny/heterogeny-php
=========================

v0.0.12(6y ago)63.9k21GPL-3.0-onlyPHPCI failing

Since Apr 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/heterogeny/heterogeny-php)[ Packagist](https://packagist.org/packages/heterogeny/heterogeny-php)[ RSS](/packages/heterogeny-heterogeny-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (10)Used By (1)

Heterogeny [![Build Status](https://camo.githubusercontent.com/f5a4b7e13d14c3babc949971ac9ac7775e05ca3002c14393a003c0c29e86e142/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f68657465726f67656e792f68657465726f67656e792d7068702e737667)](https://travis-ci.org/heterogeny/heterogeny-php) [![Latest Stable Version](https://camo.githubusercontent.com/cda0e9a968d51a4d63ad95e6d18f7b86f795b529211cd6aee81108a0417721a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68657465726f67656e792f68657465726f67656e792d7068702e737667)](https://packagist.org/packages/heterogeny/heterogeny-php) [![Total Downloads](https://camo.githubusercontent.com/5a0d22e227835f51116a643f3f344f5dd59a59d5350d5a6252189b55d660dcc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68657465726f67656e792f68657465726f67656e792d7068702e737667)](https://packagist.org/packages/heterogeny/heterogeny-php) [![Latest Unstable Version](https://camo.githubusercontent.com/23f84405aa9869a6063da3ddfe282b45709202c6e8860a0b37f3bca4f28b3231/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f68657465726f67656e792f68657465726f67656e792d7068702e737667)](https://packagist.org/packages/heterogeny/heterogeny-php) [![License](https://camo.githubusercontent.com/1beab1783144f0c597281bfaef34d568fa747e129584a397421865e4f9fa85bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68657465726f67656e792f68657465726f67656e792d7068702e737667)](https://github.com/heterogeny/heterogeny-php/blob/master/LICENSE)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#heterogeny-----)

#### Experimental

[](#experimental)

Heterogenize PHP's data structures, like `array` that is split into `Seq`, `Dict` and `Tuple`.

- `Seq` is a no-key `array`, setting keys that is not an integer will result in an `Exception`, every `Seq` will be JSON encoded as `[]`;
- `Dict` is a keyed `array`, whether key is string or not, every `Dict` will be JSON encoded as `{}`;
- `Tuple` is just like a `Seq`, maybe in the future helpers will be added to `Tuple`.

Also supplying some helpers for JSON encoding/decoding without headaches on checking whether something is `array` or `array` with keys.

**Performance is not guaranteed at this point.**

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Recently: every ~124 days

Total

8

Last Release

2456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd234a7185458399b213581d9d2bc82337d48acdf75cf4f1cc16bd3c015b1587?d=identicon)[schleumer](/maintainers/schleumer)

---

Top Contributors

[![schleumer](https://avatars.githubusercontent.com/u/2557681?v=4)](https://github.com/schleumer "schleumer (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/heterogeny-heterogeny-php/health.svg)

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

PHPackages © 2026

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