nicolasguilloux/phpunit-dependency-injection-bundle
A PHPUnit dependency injection bundle that lets tests resolve services from a container instead of constructing dependencies manually. Keeps test classes lean and setup simple for container-based PHP apps. Low adoption, so expect limited docs and community support.
Consider it when:
Look elsewhere (or budget explicitly for a fork) when:
To executives: "We assessed a Laravel package for [use case]. The latest release is maintenance, not features: it removes dependencies and adds test coverage across three PHP versions. Read: smaller security surface, more predictable upgrades, less custom code we own. The caveat is that it does not yet certify newer PHP versions — if our platform upgrade lands first, we either contribute that support or plan a replacement. Recommendation: adopt behind a spike, with the PHP-version question resolved in the same sprint."
To engineering: "v1.1.0 is hygiene, not capability. The upside is a smaller dependency graph and a genuine multi-version test matrix. Two asks before we commit: (1) confirm it is not effectively pinned to PHP ≤ 8.1 — run the suite on our target runtime; (2) confirm the added tests are meaningful (CI config, coverage delta), not just more assertions. If both hold, this is a low-risk adopt and we retire any in-house equivalent."
How can I help you explore Laravel packages today?