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

ActiveLibrary

domainflow/container
====================

Dependency injection container package for PHP 8.3+

v0.1.0(1y ago)1311MITPHPPHP ^8.3 || ^8.4CI passing

Since Apr 6Pushed 1y agoCompare

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

READMEChangelogDependencies (8)Versions (2)Used By (1)

[![Tests](https://github.com/domainflow/container/actions/workflows/tests.yml/badge.svg)](https://github.com/domainflow/uuid/actions/workflows/tests.yml)[![Packagist Version](https://camo.githubusercontent.com/775bfcd7ec102184f98ced511f472e7ecf192ac7f5245e61dc735446630911a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6d61696e666c6f772f636f6e7461696e6572)](https://camo.githubusercontent.com/775bfcd7ec102184f98ced511f472e7ecf192ac7f5245e61dc735446630911a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6d61696e666c6f772f636f6e7461696e6572)[![PHP Version](https://camo.githubusercontent.com/8dfbb066cbbeb139abb803a0afbe6891d4ee2cb3e1f7806b37d4fd6fe0cc74d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6d61696e666c6f772f636f6e7461696e6572)](https://camo.githubusercontent.com/8dfbb066cbbeb139abb803a0afbe6891d4ee2cb3e1f7806b37d4fd6fe0cc74d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6d61696e666c6f772f636f6e7461696e6572)[![License](https://camo.githubusercontent.com/ea5d0992a32ed17e1eacf72796e368eba57ef4fd3bcf057a3ea988a9bce414b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f6d61696e666c6f772f636f6e7461696e6572)](https://camo.githubusercontent.com/ea5d0992a32ed17e1eacf72796e368eba57ef4fd3bcf057a3ea988a9bce414b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f6d61696e666c6f772f636f6e7461696e6572)[![PHPStan](https://camo.githubusercontent.com/70237ca9cbbd2749f729e2c3cd1c3446ffa316f600984bafcbe197d8e9a11d9b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230392d627269676874677265656e2e737667)](https://camo.githubusercontent.com/70237ca9cbbd2749f729e2c3cd1c3446ffa316f600984bafcbe197d8e9a11d9b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230392d627269676874677265656e2e737667)

DomainFlow Dependency Injection Container
=========================================

[](#domainflow-dependency-injection-container)

The **DomainFlow Container** is a modular and extensible **Dependency Injection (DI) Container** built for modern PHP back-end applications and microservices. It provides a full suite of features to register, resolve, and manage dependencies with ease.

---

✨ Core Functionality
--------------------

[](#-core-functionality)

- **Dependency Injection (DI):** Register and resolve dependencies automatically.
- **Singleton &amp; Shared Instances:** Bind and reuse single instances across your application.
- **Lazy Loading &amp; Autowiring:** Automatically resolve class dependencies only when needed.
- **Service Binding:** Bind concrete implementations to interfaces or abstractions.
- **PSR-11 Compliance:** Fully implements [PSR-11](https://www.php-fig.org/psr/psr-11/) for broad interoperability.

---

⚙️ Requirements
---------------

[](#️-requirements)

- **PHP 8.3+**

---

📦 Installation
--------------

[](#-installation)

Use Composer to install the package:

```
composer require domainflow/container
```

---

More details and usage examples can be found in our [documentation](https://www.domainflow.dev/docs/container)

---

📄 License
---------

[](#-license)

The **DomainFlow Container** is open-sourced software licensed under the [MIT license](https://opensource.org/license/MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92f358a3839d6f81e18b53a5e04ec8bfb17c057117b9847c59281b0239b796c8?d=identicon)[42dknp](/maintainers/42dknp)

---

Top Contributors

[![42dknp](https://avatars.githubusercontent.com/u/132363982?v=4)](https://github.com/42dknp "42dknp (2 commits)")

---

Tags

containerdependencyinjectiondiphp8

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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