irstea/composer-require-checker-shim
A lightweight Composer shim for composer-require-checker that lets you run the require checker without pulling the original package into your project's dependencies. Useful for CI pipelines and legacy setups needing compatibility fixes, it exposes the checker binary through a simple drop-in wrapper.
composer-require-checker (upstream maglnet/composer-require-checker) statically verifies that every symbol your code uses at runtime is backed by a declared Composer requirement. As a PM this supports the decision "do we enforce a hard gate in CI that blocks merges introducing undeclared/implicit dependencies?" — a policy decision with a clear blast radius (fewer production Class not found incidents after a transitive dependency drops a package in a patch release).Consider it only when all of the following hold:
composer-require-checker in CI (undeclared-dependency detection is a real pain point for you, typically after an incident).composer-plugin-api constraint, or a private Packagist mirror that cannot resolve upstream's requirements. A shim exists precisely to absorb that incompatibility; if upstream installs cleanly, the shim adds nothing.composer.json in a few minutes — it should be a constraint-relaxing wrapper, not a vendored copy of upstream code.Look elsewhere when:
maglnet/composer-require-checker installs without conflict — depend on it directly and skip the shim entirely.composer-unused), or broader static analysis (PHPStan, Psalm) that catches the same class of defect with more coverage.Also treat the low score as a vetting trigger, not a verdict: for a 50-line constraint shim, low popularity is expected and not disqualifying — but it does mean you are the maintainer of record.
For executives (one paragraph): This is a small, free developer tooling component that lets us automatically catch a specific class of production bug — code that works in development because a library happens to be installed indirectly, then breaks in production when that library is upgraded or removed. Cost is near zero and it runs in CI, not in the product. The caveat is that the specific repository in front of us is an internal, single-organization workaround with no external users, so we should adopt the practice (dependency verification in CI) as standard, and treat this particular package as an implementation detail our platform team owns and can replace in an afternoon if it goes stale.
For engineering leads: The upstream tool is maglnet/composer-require-checker; this repo is a shim that relaxes install constraints so it can be pulled into our environment. Recommendation: evaluate upstream first; adopt the shim only if a concrete version conflict blocks us. Budget an hour to diff its composer.json against upstream, pin it, mirror it internally, and add a note to our dependency-upgrade runbook so it does not silently rot. It is not Laravel-specific — place it in the platform/DevEx toolchain, not the application dependency set, and keep it in require-dev.
How can I help you explore Laravel packages today?