# php-fig/container

Repository: https://github.com/php-fig/container
Canonical: https://ross.abutalabs.com/products/container
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-02-02T10:00:41+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 8, longevity 100
- inputs: {"age_days": 3670, "days_push": 212, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9995, forks 54 (observed 2026-08-28T04:10:39.190211+00:00)

## What it is
The official PHP-FIG repository holding the PSR-11 Container Interface, a set of PHP interfaces describing dependency injection containers. It provides only abstractions, not an implementation, so containers can be interoperable across frameworks.

## Use cases
- standardize dependency injection container interfaces in a PHP framework
- make my DI container PSR-11 compliant
- type-hint against a container interface instead of a concrete implementation
- swap DI containers without changing application code
- build interoperable PHP libraries that accept any PSR-11 container

## When to choose
- you are building a PHP framework or library that should work with any compliant DI container
- you want to make your container implementation PSR-11 compatible
- you need a stable, FIG-standardized interface to type-hint against

## When to avoid
- you need an actual working dependency injection container implementation
- your project does not use PHP
- you want features like auto-wiring or configuration out of the box

## Facets
- artifact type: library
- maturity: stable
- function: middleware, developer-tools
- domain: developer-tools, web-development, backend
- platform: php
- tags: psr-11, dependency-injection, container-interface, php-fig, abstraction

## Member repositories
- php-fig/container (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.190211+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:20:01.374269+00:00, confidence not recorded.
  - readme: https://github.com/php-fig/container (fetched 2026-08-28T04:10:39.190211+00:00, sha ccea7f7d8bd4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
