christophrumpel/laravel-command-file-picker
A small Laravel package that adds a file picker for Artisan command files, letting you browse and select existing command classes instead of typing file paths by hand. Handy for quickly locating and working with commands in your app.
make:*-style generators, refactor helpers, or admin CLI wizards that operate on existing models/classes, this is a reference implementation of the "pick from discovered classes" interaction. The honest comparison is not "this package vs. nothing" but "this package vs. ~30 lines on top of Laravel Prompts."Consider it when:
app/ for classes and presenting them — and want to avoid writing and maintaining the glob/reflection/namespace-mapping glue yourself.Look elsewhere when:
select/search/suggest prompts. They are maintained by the core team, support fuzzy search, multi-select, validation, and custom theming, none of which this package offers.For executives (one paragraph): This is a tiny, MIT-licensed developer-experience utility that makes internal Laravel commands friendlier by letting engineers pick a file or class from a list instead of typing it from memory. It carries no production runtime risk and no licensing cost, but it also carries no strategic value and is effectively unmaintained since 2020. My recommendation is not to adopt it as a dependency: the capability is now built into modern Laravel, and the remaining value is as a design reference we can reimplement in an afternoon. Treat it as a pattern to copy, not a line item to budget.
For engineering (the actual ask): Do not add this to composer.json. Instead, take the interaction model — discover candidate classes/files, present a searchable select, fall back to an explicit argument for CI — and implement it with Laravel Prompts. Roughly a day of work including tests, versus an unmaintained transitive dependency we would own forever. If we are stuck on an older Laravel line, fork the package into our own namespace rather than depending on the upstream tag, and pin it explicitly.
Decision framing to state out loud: the cost of building here is near-zero and the cost of owning a stale dependency is nonzero and permanent. That asymmetry, not the star count, is the reason to decline adoption.
How can I help you explore Laravel packages today?