PHPackages                             biurad/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. biurad/dependency-injection

Abandoned → [divineniiquaye/rade-di](/?search=divineniiquaye%2Frade-di)ArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

biurad/dependency-injection
===========================

A library that allows you to standardize and centralize the way objects are constructed in your application.

v0.1.0(5y ago)04041BSD-3-ClausePHPPHP ^7.2 || ^8.0

Since Nov 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/biurad/php-dependency-injection)[ Packagist](https://packagist.org/packages/biurad/dependency-injection)[ Docs](https://www.biurad.com)[ Fund](https://biurad.com/sponsor)[ Patreon](https://www.patreon.com/biurad)[ RSS](/packages/biurad-dependency-injection/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (8)Versions (2)Used By (1)

The Biurad PHP Dependency Injection
===================================

[](#the-biurad-php-dependency-injection)

[![Latest Version](https://camo.githubusercontent.com/371a03d681cd367563822883ad748f0c5b9d622a91bd6581eed53cfa5067cd72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6269757261642f646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/biurad/dependency-injection)[![Software License](https://camo.githubusercontent.com/d8c1f1b4c1b899449e9539d4de1ca66abde4c190f41ce41e7abc3330da5cad2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d2d332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Workflow Status](https://camo.githubusercontent.com/3cc28d3b2bd0d6e3019dabbe0e564a20e0d0a370783b199aeec434624d4afffc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6269757261642f7068702d646570656e64656e63792d696e6a656374696f6e2f54657374733f7374796c653d666c61742d737175617265)](https://github.com/biurad/php-dependency-injection/actions?query=workflow%3ATests)[![Code Maintainability](https://camo.githubusercontent.com/bf573924e9e8b186a02a597357092e8dec7214a3935f246715b87f4c55350d8c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6269757261642f7068702d646570656e64656e63792d696e6a656374696f6e3f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/biurad/php-dependency-injection)[![Coverage Status](https://camo.githubusercontent.com/3fb986b4eca4b5d97b08a93fc3409aa5e51021fef773513a799407ccd8ad8679/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6269757261642f7068702d646570656e64656e63792d696e6a656374696f6e3f7374796c653d666c61742d737175617265)](https://codecov.io/gh/biurad/php-dependency-injection)[![Quality Score](https://camo.githubusercontent.com/dfeff6a24ba7823e814e2e973a3995ef2ebc9f32532edccf6e0c1106256a8167/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6269757261642f7068702d646570656e64656e63792d696e6a656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/biurad/php-dependency-injection)[![Sponsor development of this project](https://camo.githubusercontent.com/2e662697b46a37233abdd7e45373397aab0bd5206336533151cdf42455d81048/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f72253230746869732532307061636b6167652d2545322539442541342d6666363962342e7376673f7374796c653d666c61742d737175617265)](https://biurad.com/sponsor)

**biurad/php-dependency-injection** is a powerful tool for managing class dependencies and performing dependency injection for [PHP](https://php.net) 7.2+ created by [Divine Niiquaye](https://github.com/divineniiquaye) based on The [Nette DI](https://github.com/nette/di). This library provides a fancy phrase that essentially means this: class dependencies are "injected" into the class via the constructor or, in some cases, "setter" methods.

📦 Installation &amp; Basic Usage
--------------------------------

[](#-installation--basic-usage)

This project requires [PHP](https://php.net) 7.2 or higher. The recommended way to install, is via [Composer](https://getcomposer.org). Simply run:

```
$ composer require biurad/dependency-injection
```

### How To Use

[](#how-to-use)

A deep understanding of the Dependency Injection is essential to building a powerful, large application, as well as for contributing to this library core itself. This README is focused on the new features added to [Nette Di](https://github.com/nette/di).

This dependency is an extended version of [Nette Di](https://github.com/nette/di) which has been simplified for developer's convenient. With this bridge, more features have been implemented to have a fast and flexible Dependency Injection Container.

> Container implementation is fully compatible with [PSR-11 Container](https://github.com/php-fig/container).

### PSR-11 Container

[](#psr-11-container)

You can always access container directly in your code by requesting `Psr\Container\ContainerInterface`:

```
use Psr\Container\ContainerInterface;

class HomeContoller
{
    public function index(ContainerInterface $container)
    {
        var_dump($container->get(App\Kernel::class));
    }
}
```

📓 Documentation
---------------

[](#-documentation)

For in-depth documentation before using this library. Full documentation on advanced usage, configuration, and customization can be found at [docs.biurad.com](https://docs.biurad.com/php-dependency-injection).

⏫ Upgrading
-----------

[](#-upgrading)

Information on how to upgrade to newer versions of this library can be found in the [UPGRADE](UPGRADE-1.x.md).

🏷️ Changelog
------------

[](#️-changelog)

[SemVer](http://semver.org/) is followed closely. Minor and patch releases should not introduce breaking changes to the codebase; See [CHANGELOG](CHANGELOG-0.x.md) for more information on what has changed recently.

Any classes or methods marked `@internal` are not intended for use outside of this library and are subject to breaking changes at any time, so please avoid using them.

🛠️ Maintenance &amp; Support
----------------------------

[](#️-maintenance--support)

When a new **major** version is released (`1.0`, `2.0`, etc), the previous one (`0.19.x`) will receive bug fixes for *at least* 3 months and security updates for 6 months after that new release comes out.

(This policy may change in the future and exceptions may be made on a case-by-case basis.)

**Professional support, including notification of new releases and security updates, is available at [Biurad Commits](https://commits.biurad.com/php-dependency-injection.git).**

👷‍♀️ Contributing
-----------------

[](#‍️-contributing)

To report a security vulnerability, please use the [Biurad Security](https://security.biurad.com). We will coordinate the fix and eventually commit the solution in this project.

Contributions to this library are **welcome**, especially ones that:

- Improve usability or flexibility without compromising our ability to adhere to ???.
- Optimize performance
- Fix issues with adhering to ???.
- ???.

Please see [CONTRIBUTING](./.github/CONTRIBUTING.md) for additional details.

🧪 Testing
---------

[](#-testing)

```
$ composer test
```

This will tests biurad/php-dependency-injection will run against PHP 7.2 version or higher.

👥 Credits &amp; Acknowledgements
--------------------------------

[](#-credits--acknowledgements)

- [Divine Niiquaye Ibok](https://github.com/divineniiquaye)
- [All Contributors](https://github.com/biurad/php-dependency-injection/contributors)

🙌 Sponsors
----------

[](#-sponsors)

Are you interested in sponsoring development of this project? Reach out and support us on [Patreon](https://www.patreon.com/biurad) or see  for a list of ways to contribute.

📄 License
---------

[](#-license)

**biurad/php-dependency-injection** is licensed under the BSD-3 license. See the [`LICENSE`](LICENSE) file for more details.

🏛️ Governance
-------------

[](#️-governance)

This project is primarily maintained by [Divine Niiquaye Ibok](https://github.com/divineniiquaye). Members of the [Biurad Lap](https://team.biurad.com) Leadership Team may occasionally assist with some of these duties.

🗺️ Who Uses It?
---------------

[](#️-who-uses-it)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us an [email](support@biurad.com) or [message](https://projects.biurad.com/message) mentioning this library. We publish all received request's at .

Check out the other cool things people are doing with `biurad/php-dependency-injection`:

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

1993d ago

### Community

Maintainers

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

---

Top Contributors

[![divineniiquaye](https://avatars.githubusercontent.com/u/53147395?v=4)](https://github.com/divineniiquaye "divineniiquaye (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

biuradcontainerdependency-injectionnettenette-diphppsr-11phpcontainernettedependency-injectionbiurad

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)

PHPackages © 2026

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