PHPackages                             zaphyr-org/container - 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. zaphyr-org/container

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

zaphyr-org/container
====================

Powerful auto wiring dependency injection container including PSR-11.

1.1.2(1y ago)13.3k—2.9%2MITPHPPHP &gt;=8.1CI passing

Since Jul 17Pushed 3mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (5)Used By (2)

[![License](https://camo.githubusercontent.com/67db614d46a18870d25481656f04f56b57afcf68caddfd26eecdda03306f848f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f636f6e7461696e6572)](https://camo.githubusercontent.com/67db614d46a18870d25481656f04f56b57afcf68caddfd26eecdda03306f848f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f636f6e7461696e6572)[![Version](https://camo.githubusercontent.com/79b89781ee0b4939362bac40f18f2c545e564f9fbcf784918ac14cccfcb341e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f636f6e7461696e6572)](https://camo.githubusercontent.com/79b89781ee0b4939362bac40f18f2c545e564f9fbcf784918ac14cccfcb341e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f636f6e7461696e6572)[![Issues](https://camo.githubusercontent.com/606e0018a960636e21d81632a2fb60112dff374e80f049039fa15e8e9df57310/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f636f6e7461696e6572)](https://camo.githubusercontent.com/606e0018a960636e21d81632a2fb60112dff374e80f049039fa15e8e9df57310/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f636f6e7461696e6572)[![Tests](https://github.com/zaphyr-org/container/actions/workflows/tests.yml/badge.svg)](https://github.com/zaphyr-org/container/actions/workflows/tests.yml/badge.svg)[![Codecov](https://camo.githubusercontent.com/3898b639c4576afcef898f63fa9c5463d8f7aee5696674ae258522fef7637505/68747470733a2f2f636f6465636f762e696f2f67682f7a61706879722d6f72672f636f6e7461696e65722f67726170682f62616467652e7376673f746f6b656e3d3253545034304b433731)](https://codecov.io/gh/zaphyr-org/container)

Container
=========

[](#container)

Powerful auto wiring dependency injection container including [PSR-11](https://www.php-fig.org/psr/psr-11/).

System Requirements
-------------------

[](#system-requirements)

You need `PHP => 8.1` but the latest stable version of PHP is recommended.

This package is continuously tested on the following PHP versions:

- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install the container repository.

```
composer require zaphyr-org/container
```

Documentation
-------------

[](#documentation)

You can read the full documentation [here](https://zaphyr.org/docs/repositories/latest/container).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [GitHub Issue Tracker](https://github.com/zaphyr-org/container/issues).

Security
--------

[](#security)

If you discover security related issues, please email  **instead of using the issue tracker!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://zaphyr.org/contributions) for details.

Code of Conduct
---------------

[](#code-of-conduct)

Please see [CODE OF CONDUCT](https://zaphyr.org/contributions#code-of-conduct) for details.

License
-------

[](#license)

This project is licensed under the MIT license. See [LICENSE](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance64

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25499f6685a498dbadd9b45769a40dc4c792434b54f4d434ce44a432f0b18741?d=identicon)[merloxx](/maintainers/merloxx)

---

Top Contributors

[![merloxx](https://avatars.githubusercontent.com/u/12734661?v=4)](https://github.com/merloxx "merloxx (23 commits)")

---

Tags

auto-wiringcontainerdependency-injectionpsr-11service-providercontainerPSR-11Autowiringdependencyinjectiondiserviceprovider

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zaphyr-org-container/health.svg)

```
[![Health](https://phpackages.com/badges/zaphyr-org-container/health.svg)](https://phpackages.com/packages/zaphyr-org-container)
```

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[yiisoft/di

Yii DI container

2351.2M100](/packages/yiisoft-di)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1322.7k2](/packages/miladrahimi-phpcontainer)[devanych/di-container

Simple implementation of a PSR-11 dependency injection container

124.2k3](/packages/devanych-di-container)

PHPackages © 2026

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