PHPackages                             dhii/container-helper-base - 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. dhii/container-helper-base

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

dhii/container-helper-base
==========================

Helper functionality for working with container.

v0.1-alpha8(7y ago)07.3k1[2 issues](https://github.com/Dhii/container-helper-base/issues)14MITPHPPHP ^5.4 | ^7.0

Since Jan 1Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Dhii/container-helper-base)[ Packagist](https://packagist.org/packages/dhii/container-helper-base)[ RSS](/packages/dhii-container-helper-base/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (10)Used By (14)

Dhii - Container Helper Base
============================

[](#dhii---container-helper-base)

[![Build Status](https://camo.githubusercontent.com/44f5f3d8db445234e471770ca4d9092c32d3a394d4c72c28a78d3e31d274aa42/68747470733a2f2f7472617669732d63692e6f72672f446869692f636f6e7461696e65722d68656c7065722d626173652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/container-helper-base)[![Code Climate](https://camo.githubusercontent.com/9d5e705f780ac4af5c53bd61b952f5530231bf0e4e1a994ff7bcbc673150b794/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f636f6e7461696e65722d68656c7065722d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/container-helper-base)[![Test Coverage](https://camo.githubusercontent.com/e8269c5425135face951dfcc65936881abe60478e55f227b0f6f6948f4f7796c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f636f6e7461696e65722d68656c7065722d626173652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/container-helper-base/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/df7dc81106b236a71d75683d86dc4d77519539aa3b70d458a56cbc9a83a29567/68747470733a2f2f706f7365722e707567782e6f72672f646869692f636f6e7461696e65722d68656c7065722d626173652f76657273696f6e)](https://packagist.org/packages/dhii/container-helper-base)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Helper functionality for working with container.

Traits
------

[](#traits)

- [`ContainerGetCapableTrait`](src/ContainerGetCapableTrait.php) - Allows retrieving values by key from anything that is a known container representation. Types include [`ContainerInterface`](https://github.com/php-fig/container/blob/master/src/ContainerInterface.php), `array`, [`ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php), and [`stdClass`](http://php.net/manual/en/language.types.object.php#language.types.object.casting). Accessing a non-existing key throws a [`NotFoundExceptionInterface`](https://github.com/php-fig/container/blob/master/src/NotFoundExceptionInterface.php).
- [`ContainerGetPathCapableTrait`](src/ContainerGetPathCapableTrait.php) - Allows getting data from nested container using passed path (list of segments).
- [`ContainerHasCapableTrait`](src/ContainerHasCapableTrait.php) - Allows checking for values by key from anything that is a known container implementation.
- [`ContainerListHasCapableTrait`](src/ContainerListHasCapableTrait.php) - Allows checking for a key on a list of containers.
- [`ContainerListGetCapableTrait`](src/ContainerListGetCapableTrait.php) - Allows retrieving a value from a list of containers.
- [`ContainerSetCapableTrait`](src/ContainerSetCapableTrait.php) - Allows setting a value on a writable container.
- [`ContainerSetPathCapableTrait`](src/ContainerSetPathCapableTrait.php) - Allows setting a value on a nested container using path.
- [`ContainerSetManyCapableTrait`](src/ContainerSetManyCapableTrait.php) - Allows setting multiple values on a writable container.
- [`ContainerUnsetCapableTrait`](src/ContainerUnsetCapableTrait.php) - Allows unsetting a value on a writable container.
- [`ContainerUnsetManyCapableTrait`](src/ContainerUnsetManyCapableTrait.php) - Allows unsetting multiple values on a writable container.
- [`NormalizeContainerCapableTrait`](src/NormalizeContainerCapableTrait.php) - Functionality for container normalization.
- [`NormalizeWritableContainerCapableTrait`](src/NormalizeWritableContainerCapableTrait.php) - Functionality for normalizing writable containers.
- [`NormalizeKeyCapableTrait`](src/NormalizeKeyCapableTrait.php) - Allows normalizing container keys.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~44 days

Total

7

Last Release

2849d 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 (124 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (23 commits)")[![romalytvynenko](https://avatars.githubusercontent.com/u/6153876?v=4)](https://github.com/romalytvynenko "romalytvynenko (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-container-helper-base/health.svg)

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

###  Alternatives

[billythekid/conditional-fields

Show or hide fields based on the value of other fields.

138.1k](/packages/billythekid-conditional-fields)[hasanmertermis/milvus-php-client

Milvus 2 Grpc Php Client

142.1k](/packages/hasanmertermis-milvus-php-client)

PHPackages © 2026

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