PHPackages                             fwk/di - 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. fwk/di

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

fwk/di
======

Dependency Injection Container for Happy Developers

v2.0.0(9y ago)01821BSD-3-ClausePHPPHP &gt;=5.5

Since May 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fwk/Di)[ Packagist](https://packagist.org/packages/fwk/di)[ RSS](/packages/fwk-di/feed)WikiDiscussions master Synced 2mo ago

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

Fwk\\Di (Dependency Injection)
==============================

[](#fwkdi-dependency-injection)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ffb56de6f1f7cf8d3f01eccb2078d292f20e7114dcc67afa3f978557bbc3bc00/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66776b2f44692f6261646765732f7175616c6974792d73636f72652e706e673f733d31663338343832323937376139653563393431343636303334616233356132323636643133326434)](https://scrutinizer-ci.com/g/fwk/Di/)[![Build Status](https://camo.githubusercontent.com/c92cbd68ab142bd64fdadf17b2876d112bd4da35c170c8b085738bfbe65560a7/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f66776b2f44692e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/fwk/Di)[![Code Coverage](https://camo.githubusercontent.com/8143a20f96230693fc69229b603ea7f1503674dcf5de6ce231741609598c225e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66776b2f44692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fwk/Di/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/dd3f174dd381768f5f29891432e95eaf6bb504f4e1f375de435796527a6b897e/68747470733a2f2f706f7365722e707567782e6f72672f66776b2f64692f762f737461626c652e706e67)](https://packagist.org/packages/fwk/di)[![Total Downloads](https://camo.githubusercontent.com/7a1cf39eb4acec589a4d2e9c140ea3dcbb4a83bb25f102dd5661dced7e7938f4/68747470733a2f2f706f7365722e707567782e6f72672f66776b2f64692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/fwk/di)[![Latest Unstable Version](https://camo.githubusercontent.com/f6c9ac9036e5e6a12cf480fe513516bccf339482919b961b0af87717126f8813/68747470733a2f2f706f7365722e707567782e6f72672f66776b2f64692f762f756e737461626c652e706e67)](https://packagist.org/packages/fwk/di)[![License](https://camo.githubusercontent.com/d05899a499eabb988c217dc2f8cd4e09b723868921f304ffe97c429f88154619/68747470733a2f2f706f7365722e707567782e6f72672f66776b2f64692f6c6963656e73652e706e67)](https://packagist.org/packages/fwk/di)

Dependency Injection Container for PHP 5.5+

Learn more in [docs/](./docs) !

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

[](#installation)

Via [Composer](http://getcomposer.org):

```
composer require fwk/di:dev-master

```

If you don't use Composer, you can still [download](https://github.com/fwk/Di/zipball/master) this repository and add it to your `include_path` [PSR-0 compatible](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md).

Contributions / Community
-------------------------

[](#contributions--community)

- Fork this repository! Any contribution is welcome 🍺 !
- Issues on Github:
- Follow *Fwk* on Twitter: [@phpfwk](https://twitter.com/phpfwk)

Legal
-----

[](#legal)

Fwk is licensed under the 3-clauses BSD license. Please read [LICENSE](./LICENSE) for full details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3636d ago

PHP version history (2 changes)v2.0.0PHP &gt;=5.5

v1.0.0PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef65c23f2f7fc1bfa82555aaead48e0d984b3ace47f41c2f8867872f3fcfdb6f?d=identicon)[neiluJ](/maintainers/neiluJ)

---

Top Contributors

[![neiluJ](https://avatars.githubusercontent.com/u/57451?v=4)](https://github.com/neiluJ "neiluJ (74 commits)")

---

Tags

dependency-injectionfwkcontainerdependencydependency-injectiondiserviceshappy-developer

### Embed Badge

![Health badge](/badges/fwk-di/health.svg)

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

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

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3611.7M3](/packages/mrclay-props-dic)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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