boaideas/laravel-cli-create-user
A Laravel artisan command for creating users straight from the CLI. It prompts for name, email, and password interactively, validates input, and saves through your existing User model, making local setup, seeding, and admin tasks quicker than tinker.
User::create(). The real decision it informs is whether to spend engineering days building an in-house provisioning command, adopt this dependency, or fork the pattern into app/Console/Commands. For an internal tool, the answer is almost always "copy the pattern, skip the dependency."db:seed run.factory()/seeder tooling or too niche to sustain a package. This is a data point for your "no unmaintained dependencies in production" policy.Reasonable fits:
php artisan tinker.User model shape have all moved.composer require. Vendoring the command into your app gives you the ergonomics with none of the abandonment risk.Look elsewhere when:
User::factory()->create() is small.To executives: This is not a product capability and shouldn't appear on the roadmap. It's a small developer-convenience tool that saves an engineer a few minutes when setting up test or demo accounts. Cost is effectively zero, but so is strategic value — the honest recommendation is to treat it as a pattern to copy, not a vendor dependency. The 16 stars, zero dependents, and four-year-old last release mean we're not betting on a community here; we'd be reading ~200 lines of code and reimplementing them internally if we want the capability at all.
To engineering: The commands (create / list / remove an Eloquent user, optionally email credentials) are straightforward and worth reproducing in app/Console/Commands rather than pulling in a 2020-era dependency. If we do adopt it, three non-negotiables: (1) gate it behind a non-production environment check or a local/staging guard, (2) strip or replace the "email credentials" path — never transmit plaintext passwords, send a signed setup link instead, (3) add an audit log entry on create/delete so we know who provisioned what. Budget a half-day spike to confirm Laravel version compatibility and copy the logic into our own codebase; that converts an unmaintained dependency into ~200 lines we own and can test.
How can I help you explore Laravel packages today?