PHPackages                             dhii/map - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. dhii/map

Abandoned → [dhii/containers](/?search=dhii%2Fcontainers)ArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

dhii/map
========

An iterable container implementation.

v0.1-alpha7(7y ago)02.3k[1 issues](https://github.com/Dhii/map/issues)4MITPHPPHP ^5.4 | ^7.0

Since Mar 16Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Dhii/map)[ Packagist](https://packagist.org/packages/dhii/map)[ RSS](/packages/dhii-map/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (7)Dependencies (14)Versions (9)Used By (4)

\[DEPRECATED\] Dhii - Map
=========================

[](#deprecated-dhii---map)

[![Build Status](https://camo.githubusercontent.com/c0becd51cfd975aa4dd89d81b3044755e3799c9dd35a32b127de8d33a9c05fe4/68747470733a2f2f7472617669732d63692e6f72672f446869692f6d61702e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/map)[![Code Climate](https://camo.githubusercontent.com/5aa31d1921e1abfa8c48c2492b44c6557b35901fedd351c73dec2794c9c7c888/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6d61702f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/map)[![Test Coverage](https://camo.githubusercontent.com/fffb04971e43ba9ea218e3f4eaa9ef87d9bdfc181a1d1bbdd515f2b490c78b37/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6d61702f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/map/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/19817e83a98eee9603f046d69fdaf1ffabeb63faf7844d6cc29aa996d5c9d1f0/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6d61702f76657273696f6e)](https://packagist.org/packages/dhii/map)[![Latest Unstable Version](https://camo.githubusercontent.com/4449dfc9071abb9953f2a77da5a8178b25aa07f7d54b465f43fce9989e4d2c24/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6d61702f762f756e737461626c65)](https://packagist.org/packages/dhii/map)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

An iterable container implementation. Is at the same time a [PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md) container, and a [Dhii iterator](https://packagist.org/packages/dhii/iterator-interface).

### Classes

[](#classes)

- [`CountableMap`](src/CountableMap.php) - An iterable container, the elements of which can be counted.
- [`AbstractBaseMap`](src/AbstractBaseMap.php) - Common functionality for maps.
- [`AbstractBaseCountableMap`](src/AbstractBaseCountableMap.php) - Common functionality for countable maps.
- [`AbstractRecursiveMapFactory`](src/AbstractRecursiveMapFactory.php) - Common functionality for factories that create map hierarchies from hierarchies of iterables.
- [`CountableMapFactory`](src/CountableMapFactory.php) - A recursive factory that can create a hierarchy of `CountableMap` objects.
- [`MakeCapableMapTrait`](src/MakeCapableMapTrait.php) - Functionality for standardized, normalized creation of maps.
- [`RecursiveFactoryTrait`](src/RecursiveFactoryTrait.php) - Functionality for standardized map factories that normalize iterable children into maps.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~28 days

Total

7

Last Release

2846d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (62 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (3 commits)")

---

Tags

containerPSR-11mapiterable

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-map/health.svg)

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

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B3.7k](/packages/psr-container)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

20238.6k7](/packages/elie29-zend-phpdi-config)[chubbyphp/chubbyphp-container

A simple PSR-11 container implementation.

1978.4k14](/packages/chubbyphp-chubbyphp-container)[phpwatch/simple-container

A fast and minimal PSR-11 compatible Dependency Injection Container with array-syntax and without auto-wiring

1810.1k2](/packages/phpwatch-simple-container)

PHPackages © 2026

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