spresnac/laravel-create-user-cli 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spresnac/laravel-create-user-cli

最新稳定版本:1.0.6

Composer 安装命令:

composer require spresnac/laravel-create-user-cli

包简介

Create a user-entry from cli with artisan

README 文档

README

Software License PHP from Packagist Laravel Version

GitHub Workflow Status
Codecov
StyleCI

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 ????

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 ????

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

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

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

Tests ????

Start the tests like standard with

composer test-ci 

or with

vendor/bin/phpunit 

Finally ????

... have fun ;)

统计信息

  • 总下载量: 52.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 23
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 23
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固