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

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

frzb/dependency-injection
=========================

Allows you to standardize and centralize the way objects are constructed in your application by php attributes

v2.1.1(2y ago)02.7k3MITPHPPHP &gt;=8.1

Since Oct 18Pushed 2y ago2 watchersCompare

[ Source](https://github.com/fractalzombie/frzb-dependency-injection)[ Packagist](https://packagist.org/packages/frzb/dependency-injection)[ Docs](https://github.com/fractalzombie/frzb-dependency-injection)[ RSS](/packages/frzb-dependency-injection/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (10)Dependencies (8)Versions (28)Used By (3)

DependencyInjection Component
=============================

[](#dependencyinjection-component)

[![Workflow Build Status](https://github.com/fractalzombie/frzb-dependency-injection/actions/workflows/build.yml/badge.svg?event=push)](https://github.com/fractalzombie/frzb-dependency-injection/actions/workflows/build.yml/badge.svg?event=push)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/947a09dd7fabb993ce6fffd4964f5f8f4185d5d20d6cd621a089389d4df34c14/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6672616374616c7a6f6d6269652f66727a622d646570656e64656e63792d696e6a656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/fractalzombie/frzb-dependency-injection/?branch=main)[![Code Intelligence Status](https://camo.githubusercontent.com/76c19ed762a56cf6ded70d41b6712ccf40c2e79025caac776dbb57d0b8ba7222/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6672616374616c7a6f6d6269652f66727a622d646570656e64656e63792d696e6a656374696f6e2f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/code-intelligence)[![Build Status](https://camo.githubusercontent.com/7d40ea2536db375522f2cf998b52f1328abb437e88780f3eb376e2e530fee6f7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6672616374616c7a6f6d6269652f66727a622d646570656e64656e63792d696e6a656374696f6e2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/fractalzombie/frzb-dependency-injection/build-status/main)[![Coverage Status](https://camo.githubusercontent.com/632e7130fabe5282ec435adb8f60e858b6670e5b2db71c835e5b9f39b01574f2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6672616374616c7a6f6d6269652f66727a622d646570656e64656e63792d696e6a656374696f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/fractalzombie/frzb-dependency-injection?branch=main)[![Quality Gate Status](https://camo.githubusercontent.com/cfde06e990090a26670e4d60fb63bdd3ca522af7a52d65dce43864c7a3a11026/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Bugs](https://camo.githubusercontent.com/87987f28d034339f44f254a40084e6a849f630b3b8103322bfdc6929fc5f1a14/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d62756773)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Security Rating](https://camo.githubusercontent.com/2a64c7a0c1a47daff6214b8addebc4d5a0078639316265468672630133d86409/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Maintainability Rating](https://camo.githubusercontent.com/3869a534f7a0c10dab366fa394e14161794c1c38f42d66969c447d707ae8586f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Code Smells](https://camo.githubusercontent.com/0491af83d202a3b6633aa4526aaf2b5280f3f2fe2d5523050bf452c786f3e752/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Lines of Code](https://camo.githubusercontent.com/9b9d671c909e48266a074793ea569f05ab3d1d21485d6338ac20ea61457d7022/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d6e636c6f63)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Coverage](https://camo.githubusercontent.com/4789f19159618f9e9dee7b7a95cc38ae84aa6565bdd9bb86ea7e660d8a6bd5f3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Technical Debt](https://camo.githubusercontent.com/9a73f3155e8dce86252a503e8d285a3f5c7fbaee7f56d9172e061ba0e6eaf36e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Reliability Rating](https://camo.githubusercontent.com/d7a3d57a5f5d13569844d1990b070429b27905e7c0f525e5a03b3179549509c1/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Duplicated Lines (%)](https://camo.githubusercontent.com/daf111660a8ed076554b345f1f9e08bdf3afa4ee70bd585dca6baafdb1b2bbaa/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)[![Vulnerabilities](https://camo.githubusercontent.com/c77f7a88790b3c0c9570450f11f48f847b841e952398761c63f0802c6f65f8f6/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6672616374616c7a6f6d6269655f66727a622d646570656e64656e63792d696e6a656374696f6e266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/summary/new_code?id=fractalzombie_frzb-dependency-injection)

The `DependencyInjection` component allows you to standardize and centralize the way objects are constructed in your application by php attributes.

Resources
---------

[](#resources)

- [Documentation](https://github.com/fractalzombie/frzb-dependency-injection/blob/main/Documentation/HOW_TO_USE.md)

Contributions
-------------

[](#contributions)

[![Alt](https://camo.githubusercontent.com/1e9b59061638f7e91ebe7d8d59c6e0cdd0e8d40197e21237aed15ed13f9f3707/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f353135396365353837623632333563363535333563373961393631623035323965313636326665652e737667 "DependencyInjection Component")](https://camo.githubusercontent.com/1e9b59061638f7e91ebe7d8d59c6e0cdd0e8d40197e21237aed15ed13f9f3707/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f353135396365353837623632333563363535333563373961393631623035323965313636326665652e737667)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

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

Recently: every ~94 days

Total

25

Last Release

786d ago

Major Versions

v1.8.0 → v2.0.02023-12-25

PHP version history (3 changes)1.0.0PHP &gt;=8.0

v1.2.0PHP ^8.1

v1.8.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3874c03818bc669a9c692b7eafc94f7e55d06fccd7f214c4ee7408ac370214c2?d=identicon)[fractalzombie](/maintainers/fractalzombie)

---

Top Contributors

[![fractalzombie](https://avatars.githubusercontent.com/u/5721336?v=4)](https://github.com/fractalzombie "fractalzombie (33 commits)")

---

Tags

symfonydependencyinjectiondependency-injectionlibraryfrzb

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[bref/symfony-bridge

Makes Symfony work on AWS Lambda with Bref

491.7M5](/packages/bref-symfony-bridge)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)

PHPackages © 2026

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