symfony/dependency-injection
Allows you to standardize and centralize the way objects are constructed in your application observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 5671
- days_rel: 11
- days_push: 11
- n_releases_24m: 86
Adoption not part of the score
4166 stars · 93 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
The Symfony DependencyInjection component is a PHP library implementing a service container (dependency injection container) that standardizes and centralizes how objects are constructed and wired together in an application. It supports autowiring, configuration files, container compilation, and can be used standalone or as part of the Symfony framework.
Use cases
- manage object construction and wiring in a PHP application
- set up a dependency injection container in PHP
- autowire services in a Symfony project
- decouple classes by injecting dependencies instead of creating them
- configure services with YAML/XML/PHP config files
- use a DI container in a standalone PHP app without the full framework
When to choose
- you're building a Symfony application or using Symfony components
- you want a mature, battle-tested DI container with autowiring and compilation
- you need testable, decoupled service architecture in PHP
- you want a container usable outside any framework
When to avoid
- you're working in a language other than PHP
- your project is small enough that manual construction is simpler
- you need a full application framework rather than just a container component
Facets
library · maturity stable
middleware configuration-management developer-tools backend web-development developer-tools php cross-platform dependency-injection service-container symfony-component autowiring ioc-container php
7 sources
- readme: https://github.com/symfony/dependency-injection · fetched 2026-08-28 · 6d2f4ce7beb4
- homepage: https://symfony.com/dependency-injection · fetched 2026-08-29 · 3e325e87f78c
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/dependency_injection.html · fetched 2026-08-29 · 41cc698f1a3f
- site_page: https://symfony.com/projects/phpmyfaq · fetched 2026-08-29 · b0b5a7438255
- site_page: https://symfony.com/releases · fetched 2026-08-29 · f109a7a4a5da
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · da84802d18f3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/dependency-injection | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="symfony/dependency-injection")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem