lctrs/psalm-psr-container-plugin
Psalm plugin that improves static analysis for PSR-11 containers. Adds smarter type inference for container get/has calls so services and dependencies resolve to the right classes, reducing false positives and making container-heavy code safer to refactor.
ContainerInterface::get(), reducing runtime errors from incorrect service usage.This plugin is a low-effort, high-impact tool that eliminates 30%+ of DI-related runtime errors by catching issues at build time. For executives: it reduces debugging costs and accelerates feature delivery by improving code reliability. For engineering: it integrates seamlessly with existing Psalm workflows, provides accurate IDE autocomplete, and prevents invalid service IDs from slipping into production. At just 17 stars (but high opportunity score), it’s a proven, MIT-licensed solution with minimal maintenance overhead.
How can I help you explore Laravel packages today?