PHPackages                             kaishiyoku/laravel-cli-create-user - 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. [Database &amp; ORM](/categories/database)
4. /
5. kaishiyoku/laravel-cli-create-user

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

kaishiyoku/laravel-cli-create-user
==================================

An artisan command to create, list and remove users in a laravel application from the cli

5.0.0(3y ago)11.4kMITPHPPHP ^8.0.2

Since Aug 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Kaishiyoku/laravel-cli-create-user)[ Packagist](https://packagist.org/packages/kaishiyoku/laravel-cli-create-user)[ Docs](https://github.com/kaishiyoku/laravel-cli-create-user)[ RSS](/packages/kaishiyoku-laravel-cli-create-user/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (30)Used By (0)

Easily create, list and remove Laravel users with a CLI command
===============================================================

[](#easily-create-list-and-remove-laravel-users-with-a-cli-command)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c1a90fb091271ee36ace4db63c1b36c9fdb7ec0b12446b218738e7d53058e4f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6169736869796f6b752f6c61726176656c2d636c692d6372656174652d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaishiyoku/laravel-cli-create-user)[![Software License](https://camo.githubusercontent.com/cffd8590ef882a53f829d062517db29a7cb098d26cb55545cf502f7545158804/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6169736869796f6b752f6c61726176656c2d636c692d6372656174652d757365722e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/1f4a1bd8a29d76b9858ab1ccd15a3dd44417dfd32b67964151631d405c26ac08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6169736869796f6b752f6c61726176656c2d636c692d6372656174652d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaishiyoku/laravel-cli-create-user)

Using this artisan command it's easy to create Laravel users from the CLI whenever you need them. If you want, it will even email the user their credentials.

The command will validate the user details using Laravel's regular validation engine (which means you can create your own rules). If you want, the command can create a random password for you.

We also added commands to list all existing users and to easily remove users.

Requirements
------------

[](#requirements)

The package is based on the defaul User model that ships with Laravel, so it assumes you're using a model (you can name it anything you want) with name, email and password fields.

Installation
------------

[](#installation)

You can install the package via composer:

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

If you're installing the package on Laravel 5.5 or higher, you're done (The package uses Laravel's auto package discovery).

```
// config/app.php

'providers' => [
    ...
    Kaishiyoku\CreateUser\CreateUserServiceProvider::class,
];
```

Usage
-----

[](#usage)

### Create a new user

[](#create-a-new-user)

From your CLI execute:

```
php artisan user:create
```

You will be asked for the user's name, email and password, and then the user account will be created. If you choose, a random password will be created for you.

#### Input validation

[](#input-validation)

Your input will be validated using Laravel's validation engine with Laravel's default user input rules (you can [change the rules](#configuration) if you want).

#### Email user credentials

[](#email-user-credentials)

You will be asked if you want to send an email to the newly created user with their credentials. If you do, the command will send a regular Laravel notification to the user's email, so make sure you've sert your app's [mail settings](https://laravel.com/docs/master/mail).

The notification is using the default APP\_NAME, APP\_URL, MAIL\_FROM\_ADDRESS and MAIL\_FROM\_NAME so make sure they're set correctly.

### List all existing users

[](#list-all-existing-users)

From your CLI execute:

```
php artisan user:list
```

You will be presented with a table of all existing users.

### Remove a user (by ID)

[](#remove-a-user-by-id)

From your CLI execute:

```
php artisan user:remove {user_id}
```

The command will confirm that you want to remove that user and will remove it.

Configuration
-------------

[](#configuration)

By default, the package assumes your User model is called User and validates your model input with the default rules that Laravel uses for users creation.

If you want to change any of these settings, you can publish the config file with:

```
php artisan vendor:publish --provider="Kaishiyoku\CreateUser\CreateUserServiceProvider"
```

Config caching
--------------

[](#config-caching)

If you're using closures in your `createuser.php` config file and want it to be able to be cached, you have to serialize them using `\Opis\Closure\serialize()`.

Alternatives
------------

[](#alternatives)

- [laravel-make-user](https://github.com/michaeldyrynda/laravel-make-user)
- [laravel-cli-user](https://github.com/subdesign/laravel-cli-user)
- [create-user-command](https://github.com/rap2hpoutre/create-user-command)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 71% 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 ~62 days

Recently: every ~119 days

Total

29

Last Release

1439d ago

Major Versions

v0.3.3 → v1.02017-09-10

v1.2 → 2.0.02018-11-17

2.4.1 → 3.0.02020-10-23

3.1.3 → 4.0.02022-06-01

4.0.0 → 5.0.02022-06-01

PHP version history (5 changes)0.1PHP ^7.0

2.0.0PHP &gt;=7.1.3

2.2.2PHP ^7.2

3.1.2PHP ^7.2|^8.0

4.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7349944ba7795f1fbec27cf22625511bc8e7fdc6b55529ac87788485cca1797?d=identicon)[Kaishiyoku](/maintainers/Kaishiyoku)

---

Top Contributors

[![amosmos](https://avatars.githubusercontent.com/u/2318695?v=4)](https://github.com/amosmos "amosmos (71 commits)")[![Kaishiyoku](https://avatars.githubusercontent.com/u/5131112?v=4)](https://github.com/Kaishiyoku "Kaishiyoku (28 commits)")[![roblesterjr04](https://avatars.githubusercontent.com/u/6423115?v=4)](https://github.com/roblesterjr04 "roblesterjr04 (1 commits)")

---

Tags

clilaraveldatabaseemaileloquentartisanuserlistcreateremoveBOA Ideaslaravel-create-user

### Embed Badge

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

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

###  Alternatives

[boaideas/laravel-cli-create-user

An artisan command to create, list and remove users in a laravel application from the cli

1610.7k](/packages/boaideas-laravel-cli-create-user)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5813.2k](/packages/vectorial1024-laravel-cache-evict)

PHPackages © 2026

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