0.0.0/composer-include-files
A Composer plugin that includes PHP files via configurable glob patterns and explicit load order, without relying on autoload files. Useful for helper functions, bootstrap scripts, and legacy code that must load early in the request.
require in public/index.php / artisan / phpunit bootstrap, (c) vendored 40-line Composer plugin maintained in-house. Decision hinges on how many entry points you have and whether you need it to work for dependents of your package, not just your own app.composer.json reduces "works on my machine" bug reports.Adopt only when all of these are true:
files autoload entry. Confirm this by reproducing a failure that a normal files entry does not fix.composer.json of the consuming app, and you're comfortable that the plugin must be installed as a project-level (not transitive) dependency for predictable behavior.pre-autoload-dump / post-autoload-dump) against your Composer version, including Composer 2.x plugin-API allowlisting (allow-plugins).require at the top of each entry point — genuinely does not scale for your situation (many entry points, or the ordering must travel with a distributed package).Look elsewhere when:
"autoload": { "files": [...] } entry solves it — which it usually does.require is more transparent and zero-risk.allow-plugins is locked down in CI for supply-chain reasons. A 12-star plugin with no maintainer trail is a supply-chain finding waiting to be written up.For executives (one paragraph): This is a small, single-purpose build tool, not a product dependency. It solves one narrow problem — making sure a handful of PHP files load before the standard autoloader — which only matters if we hit a specific class of bootstrapping failure. It has essentially no adoption (12 stars, zero downstream packages), so we should treat it as a reference implementation, not a supplier: if we confirm we need the behavior, we should copy roughly a hundred lines into our codebase and own it. Recommendation: no procurement, no vendor relationship, no license cost (MIT), minimal engineering cost if the requirement is real — and no action at all if it isn't.
For engineering leads: Use this as a checklist, not a dependency. First, reproduce the ordering bug with a standard files autoload entry; if that fails, evaluate the plugin's approach in a spike branch. If the approach works, vendor it — pin the commit, add a wrapper test that asserts include order, and document why the ordering exists. Do not add it as a transitive dependency of any package we publish. Budget roughly half a day for the spike and a day for vendoring plus tests, and be explicit that we now own a Composer plugin's compatibility with future Composer releases.
Signal to report upward: low maturity, low adoption, non-trivial blast radius if it breaks silently during composer install in CI. The risk isn't in adopting it; the risk is in adopting it casually.
How can I help you explore Laravel packages today?