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

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

dhii/data-container-base
========================

Base functionality for container implementations

v0.1-alpha2(8y ago)05.3k10MITPHPPHP ^5.4 | ^7.0

Since Jul 16Pushed 8y ago3 watchersCompare

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

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

Dhii - Data - Container - Base
==============================

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

[![Build Status](https://camo.githubusercontent.com/1e9298f107d42bdf180a3367f8054000f06f393ff861f73c2b26b43a7b0c8b68/68747470733a2f2f7472617669732d63692e6f72672f446869692f646174612d636f6e7461696e65722d626173652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/data-container-base)[![Code Climate](https://camo.githubusercontent.com/1817d79772b7583f6cefc1b1845a9a982b11f539be3beed6695242f30b5ffc68/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f646174612d636f6e7461696e65722d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/data-container-base)[![Test Coverage](https://camo.githubusercontent.com/9fdcf10fbcd4934b4818582598ac16a60434e9fbdffadecb5cb022bb5625c022/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f646174612d636f6e7461696e65722d626173652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/data-container-base/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/8dc9f0d1a259089607fc5cd0cae927763b4b4593aac7e4c07ced9b272271f364/68747470733a2f2f706f7365722e707567782e6f72672f646869692f646174612d636f6e7461696e65722d626173652f76657273696f6e)](https://packagist.org/packages/dhii/data-container-base)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

This package contains base implementations of standard [container-related interfaces](https://packagist.org/packages/dhii/data-container-interface), which includes exceptions, exception factories, and a small opinionated base implementation that demonstrates simple common usage. Because the standard is an extension of [PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md), this implementation is compliant with PSR-11.

### Classes

[](#classes)

- [`AbstractBaseContainer`](src/AbstractBaseContainer.php) - A base class for containers. For the simplest implementation, only needs a constructor added.
- [`ContainerException`](src/Exception/ContainerException.php) - Represents a problem with a container.
- [`NotFoundException`](src/Exception/NotFoundException.php) - Occurs when a key cannot be found in a container.

### Traits

[](#traits)

- [`CreateContainerExceptionCapableTrait`](src/CreateContainerExceptionCapableTrait.php) - Creates `ContainerException` instances.
- [`CreateNotFoundExceptionCapableTrait`](src/CreateNotFoundExceptionCapableTrait.php) - Creates `NotFoundException` instances

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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 ~3 days

Total

2

Last Release

2985d 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 (57 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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