maglnet/composer-require-checker
ComposerRequireChecker is a CLI tool that analyzes your composer.json and source code to find unknown symbols and soft/transitive dependencies. It flags code relying on packages or PHP extensions you haven't explicitly required, helping prevent unexpected breakage from dependency updates.
composer.json requirements. This tool turns that policy into an automatable check.Look elsewhere or defer adoption when:
vendor/; the README documents a workaround, but it adds CI complexity.composer install scan in CI or locally.For executives: This is a low-cost, MIT-licensed quality gate for PHP/Laravel products. It prevents a common failure mode: code silently depends on a package installed only because another dependency brought it in. When that transitive package changes, production can break. The tool makes those hidden dependencies visible and enforceable in CI, reducing release risk without changing application code.
For engineering: Adopt it as a CI check after composer install. Run the PHAR or PHIVE-managed binary against composer.json, tune the config only where needed, and fail builds on unknown symbols. It catches missing direct Composer requirements and missing PHP extensions. It does not install dependencies, modify code, or replace PHPStan/Psalm or security scanners. Start with a non-blocking pilot on one Laravel service or package, fix findings by adding explicit requirements, then make it a required check. Note the README guidance to disable Xdebug for performance and to handle custom installer plugins via composer install --no-plugins if necessary.
Recommendation: Pilot in CI for one high-value PHP/Laravel repository. If findings are actionable and false positives are manageable, standardize it as a dependency-governance gate and pair it with existing static analysis and security tooling.
How can I help you explore Laravel packages today?