PHPackages                             spresnac/laravel-create-user-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. spresnac/laravel-create-user-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

spresnac/laravel-create-user-cli
================================

Create a user-entry from cli with artisan

1.0.6(3y ago)2354.8k↓27.5%51MITPHPPHP ^7.4|^8.0|^8.1CI failing

Since Mar 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/spresnac/laravel-create-user-cli)[ Packagist](https://packagist.org/packages/spresnac/laravel-create-user-cli)[ Fund](https://www.buymeacoffee.com/spresnac)[ Fund](https://www.paypal.me/paladin)[ RSS](/packages/spresnac-laravel-create-user-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (1)

Laravel: Create a user from CLI with artisan
============================================

[](#laravel-create-a-user-from-cli-with-artisan)

[![Software License](https://camo.githubusercontent.com/8bfb901fee7c97d49ee62aaa16e7ee1e25dc66939e38e0b35e8a6d41568e5e8c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](LICENSE)[![PHP from Packagist](https://camo.githubusercontent.com/92b639c1b0e7d0c07aef83215efbb02ba38200cd0e6b00018ab85833dfb1bf65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73707265736e61632f6c61726176656c2d6372656174652d757365722d636c692e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://packagist.org/packages/spresnac/laravel-create-user-cli)[![Laravel Version](https://camo.githubusercontent.com/56326793794f5a560f0c710e561b93e21dbde39e764a9e7179505c05d79a8725/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d25354537253230253743253230253545382d696d706f7274616e743f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c)](https://laravel.com)

[![GitHub Workflow Status](https://camo.githubusercontent.com/5242d7e9236b173859eceed8e2ddc9e0798e869e948a535114f4e9893e6b76f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73707265736e61632f6c61726176656c2d6372656174652d757365722d636c692f74657374733f6c6162656c3d47482532305465737473266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://github.com/spresnac/laravel-create-user-cli/actions)
[![Codecov](https://camo.githubusercontent.com/efc1dee5e7599ece74c53f16cbe4b5520dd1577d0252930f74a3ca7542b5589a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73707265736e61632f6c61726176656c2d6372656174652d757365722d636c693f6c6f676f3d636f6465636f76267374796c653d666f722d7468652d626164676526746f6b656e3d36424558353530363242)](https://camo.githubusercontent.com/efc1dee5e7599ece74c53f16cbe4b5520dd1577d0252930f74a3ca7542b5589a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73707265736e61632f6c61726176656c2d6372656174652d757365722d636c693f6c6f676f3d636f6465636f76267374796c653d666f722d7468652d626164676526746f6b656e3d36424558353530363242)
[![StyleCI](https://camo.githubusercontent.com/3cb256504b383028dd4bb522b81d08dadd2511f49dc78d8e3761e1d1a76fd465/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137343439323237392f736869656c64)](https://github.styleci.io/repos/174492279)

---

About this package 💡
====================

[](#about-this-package-)

This package is an easy way to create a user for a ci/cd workflow. Just setup your project as usual and create a new user by firing a cli-command.

---

Installation 💻
==============

[](#installation-)

First things first, so require the package:

```
composer require spresnac/laravel-create-user-cli

```

Now, register the new command within your `app\Console\Kernel.php`

```
    protected $commands = [
        \spresnac\createcliuser\CreateCliUserCommand::class,
    ];

```

---

Usage 💪
=======

[](#usage-)

This package is very simple to use, open up your console and type

```
php artisan user:create

```

When using it within some kind of continous deployment, use the parameter and options to get fully automated like

```
php artisan user:create "user_name" "user_email" "user_password" --force

```

One can get help with

```
php artisan help user:create

```

---

CI environments
===============

[](#ci-environments)

This is an overview of all result codes you can handle in ci environements:

CodeDescription0all good 😃1The user with this data is already existing and was not overwritten. Use the `--force` option to overwrite the user.2There is a user exisiting with this data and there was a problem updating this database record.5You should not get this code. If you do, you may have not provided all data correct.---

Tests 🤓
=======

[](#tests-)

Start the tests like standard with

```
composer test-ci

```

or with

```
vendor/bin/phpunit

```

---

Finally 🤩
=========

[](#finally-)

... have fun ;)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 91.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~210 days

Recently: every ~220 days

Total

7

Last Release

1364d ago

PHP version history (4 changes)1.0.0PHP 7.\*

1.0.3PHP ^7.2

1.0.4PHP ^7.3|^7.4|^8.0

1.0.6PHP ^7.4|^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/04d0510a1a5bdd5707fb726d639d971007e602343c4378f65a56c64fa5638170?d=identicon)[spresnac](/maintainers/spresnac)

---

Top Contributors

[![spresnac](https://avatars.githubusercontent.com/u/3299107?v=4)](https://github.com/spresnac "spresnac (41 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

artisanartisan-commandclihacktoberfestlaravellaravel-frameworklaravel-packagephpclilaravelcicdusermanagement

### Embed Badge

![Health badge](/badges/spresnac-laravel-create-user-cli/health.svg)

```
[![Health](https://phpackages.com/badges/spresnac-laravel-create-user-cli/health.svg)](https://phpackages.com/packages/spresnac-laravel-create-user-cli)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[renoki-co/php-helm

PHP Helm Processor is a process wrapper for Kubernetes' Helm v3 CLI. You can run programmatically Helm v3 commands, directly from PHP, with a simple syntax.

1310.5k](/packages/renoki-co-php-helm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
