PHPackages                             rquadling/dependency-injection - 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. rquadling/dependency-injection

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

rquadling/dependency-injection
==============================

Minor enhancement to PHP-DI

v2.0.0(5y ago)0126[1 PRs](https://github.com/rquadling/dependency-injection/pulls)1PHPPHP ^7.4

Since Dec 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rquadling/dependency-injection)[ Packagist](https://packagist.org/packages/rquadling/dependency-injection)[ RSS](/packages/rquadling-dependency-injection/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (7)Versions (6)Used By (1)

RQuadling/DependencyInjection
=============================

[](#rquadlingdependencyinjection)

[![Build Status](https://camo.githubusercontent.com/4462691d9c1093fe3ccf385b96e6a7d865a6bfb546fdfe810232e0b85b84ca2b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/dependency-injection)[![Code Coverage](https://camo.githubusercontent.com/d63c19299b76c6a816cc841dd908489276ccf24816369924a319a01af299d940/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/dependency-injection/)[![GitHub issues](https://camo.githubusercontent.com/e310ccf8c551db95e5e050e27c95d773055c590b3356e39669bf3dff1a7ba279/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/dependency-injection/issues)

[![PHP Version](https://camo.githubusercontent.com/5d1358b2c46ed130594d12d3b8f7faf154ea7e949ce83e9c4134376d97e736ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/dependency-injection)[![Stable Version](https://camo.githubusercontent.com/9fe58d853e932d13af5089e00b98bedab7eadca4587fc1c4fc0deeadb245d332/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/dependency-injection)

[![Total Downloads](https://camo.githubusercontent.com/ff33b86f68ba831b86f52601a5ae64430742ed7b0354691da65167a6dea1cb2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/dependency-injection)[![Monthly Downloads](https://camo.githubusercontent.com/5dda7a553495c99c21a89a461f8cc46370431c148c6a8b2622a794d00f4a355d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/dependency-injection)[![Daily Downloads](https://camo.githubusercontent.com/79f9f8225724350652bd28427fcef7478dc18149d9040971de5db06dca3a82c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/dependency-injection)

A minor enhancement to PHP-DI used by RQuadling's various projects

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

[](#installation)

Using Composer:

```
composer require rquadling/dependency-injection
```

DI config
---------

[](#di-config)

Create a `di.php` file in the root of your project to define your dependencies.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

2141d ago

Major Versions

v1.0.2 → v2.0.02020-06-29

PHP version history (2 changes)v1.0.0PHP ^7

v2.0.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c385f24d4f13c86b9c3e54c61b2532189c1ffb3099a8e63738fd75de90b20ba?d=identicon)[RQuadling](/maintainers/RQuadling)

---

Top Contributors

[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rquadling-dependency-injection/health.svg)

```
[![Health](https://phpackages.com/badges/rquadling-dependency-injection/health.svg)](https://phpackages.com/packages/rquadling-dependency-injection)
```

###  Alternatives

[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63118.9k3](/packages/infinum-eightshift-libs)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27241.1k1](/packages/drupal-code-builder-drupal-code-builder)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)[php-di/zf2-bridge

Integrates PHP-DI to Zend Framework 2

1118.4k](/packages/php-di-zf2-bridge)[meklis/switcher-core

SNMP switcher core module

181.6k](/packages/meklis-switcher-core)

PHPackages © 2026

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