sirbrillig/phpcs-import-detection
PHPCS sniffs that warn when classes/functions/constants are used without an explicit import or fully-qualified name, and flags unused imports. Helps catch namespace issues during refactors (note: PHP 8 tokenization bug/performance caveats).
For Executives: "This package automates import hygiene in PHP projects, reducing manual code reviews and technical debt. It integrates with our existing CI/CD pipelines with minimal effort, improving developer productivity and code consistency. The new static analysis keyword (#56) aligns with modern tooling, making it a scalable solution for growing teams. However, note its limited PHPCS v3.x support—we’ll need to validate compatibility before adoption."
For Engineering: "A lightweight PHPCS sniff to enforce clean imports (no unused/duplicates). Works with PHP 8.2 but not PHPCS v3.x (blocker for some teams). The static analysis tag (#56) helps with IDE/linter integration. Low maintenance overhead—ideal for teams already using PHPCS. Tradeoff: If we upgrade PHPCS later, this may need replacement."
How can I help you explore Laravel packages today?