{"adoption": {"forks": 320, "observed_at": "2026-08-28T04:07:19.050787+00:00", "stars": 2772}, "canonical_url": "https://ross.abutalabs.com/products/php-di", "card": {"archived": false, "artifact_type": "library", "description": "The dependency injection container for humans", "domain": ["web-development", "backend", "developer-tools"], "enriched": true, "function": ["middleware", "developer-tools"], "health_score": 70, "homepage": "https://php-di.org", "language": "PHP", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["PHP-DI/PHP-DI"], "name": "PHP-DI/PHP-DI", "platform": ["php"], "pushed_at": "2025-12-31T13:02:25+00:00", "repo": "PHP-DI/PHP-DI", "stars": 2772, "tags": ["dependency-injection", "ioc-container", "psr-11", "autowiring", "service-container"], "topics": ["php", "dependency-injection", "ioc", "psr-11", "container-interop"], "urls": [], "use_cases": ["manage dependency injection in a PHP application", "autowire classes from constructor type-hints", "bind interfaces to implementations in a service container", "replace Pimple or another PSR-11 container", "configure services with PHP-based definitions instead of YAML or XML", "integrate a DI container with Slim or Symfony"], "what_it_is": "PHP-DI is a dependency injection container for PHP that emphasizes practicality, autowiring, and expressive PHP-based configuration. It is framework-agnostic, PSR-11 compliant, and supports container compilation for production performance.", "when_to_avoid": ["your framework already ships with its own DI container you are happy with", "you need dependency injection in a non-PHP project", "you are on PHP below 8.0 (PHP-DI 7 requirement)"], "when_to_choose": ["you want a PSR-11 compliant container with zero-config autowiring", "you prefer configuration written in PHP with IDE autocompletion and static analysis", "you need a framework-agnostic container that scales from small apps to modular systems", "you want compiled containers for optimal production performance"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/php-di", "repo": "PHP-DI/PHP-DI", "role": "main", "score": 58}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:19.050787+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T08:16:37.224332+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "dce0997cd472ddcb2c432621d97e9220cfb05a8546f161afc8ce1c57c15e1f15", "fetched_at": "2026-08-28T04:07:19.050787+00:00", "kind": "readme", "missing": false, "url": "https://github.com/PHP-DI/PHP-DI"}, {"content_hash": "10b523965e9e4ac82f677e2e35cf3db05978edb10db04f9fcdebeea1dd97970a", "fetched_at": "2026-08-29T09:55:59.863240+00:00", "kind": "homepage", "missing": false, "url": "https://php-di.org"}, {"content_hash": "0523653bb300d313f68fba660aa89078467e04727a85902cd8b8701527a4f44f", "fetched_at": "2026-08-29T09:55:59.872089+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc/getting-started.html"}, {"content_hash": "07b60442370541c4fa2a6d0e537950ad0a8c4a5853cd0321a74859095a83cf44", "fetched_at": "2026-08-29T09:55:59.873991+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/doc"}, {"content_hash": "05a22684ec1ebddf299a39c059587a81cefcfa16fa1edacc5701ae846ff88ecf", "fetched_at": "2026-08-29T09:55:59.875503+00:00", "kind": "site_page", "missing": false, "url": "https://php-di.org/change-log.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 60, "longevity": 100, "rhythm": 31}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5282, "days_push": 245, "days_rel": 382, "gap_med": 41, "n_releases_24m": 6}, "score": 58, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}