{"id":13828329,"url":"https://github.com/spresnac/laravel-create-user-cli","last_synced_at":"2025-08-19T04:37:51.791Z","repository":{"id":34290354,"uuid":"174492279","full_name":"spresnac/laravel-create-user-cli","owner":"spresnac","description":"Create a user-entry from cli with artisan","archived":false,"fork":false,"pushed_at":"2022-08-24T08:58:56.000Z","size":57,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T05:41:17.368Z","etag":null,"topics":["artisan","artisan-command","cli","hacktoberfest","laravel","laravel-framework","laravel-package"],"latest_commit_sha":null,"homepage":"https://spresnac.github.io/laravel-create-user-cli","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spresnac.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["spresnac"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":["https://www.paypal.me/paladin","https://www.buymeacoffee.com/spresnac"]}},"created_at":"2019-03-08T07:48:03.000Z","updated_at":"2024-09-10T18:23:25.000Z","dependencies_parsed_at":"2022-08-04T02:00:26.085Z","dependency_job_id":null,"html_url":"https://github.com/spresnac/laravel-create-user-cli","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spresnac%2Flaravel-create-user-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spresnac%2Flaravel-create-user-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spresnac%2Flaravel-create-user-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spresnac%2Flaravel-create-user-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spresnac","download_url":"https://codeload.github.com/spresnac/laravel-create-user-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238497661,"owners_count":19482295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artisan","artisan-command","cli","hacktoberfest","laravel","laravel-framework","laravel-package"],"created_at":"2024-08-04T09:02:41.687Z","updated_at":"2025-02-12T15:31:37.123Z","avatar_url":"https://github.com/spresnac.png","language":"PHP","funding_links":["https://github.com/sponsors/spresnac","https://www.paypal.me/paladin","https://www.buymeacoffee.com/spresnac"],"categories":["PHP"],"sub_categories":[],"readme":"# Laravel: Create a user from CLI with artisan\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge\u0026logo=github)](LICENSE)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/spresnac/laravel-create-user-cli.svg?style=for-the-badge\u0026logo=php)](https://packagist.org/packages/spresnac/laravel-create-user-cli)\n[![Laravel Version](https://img.shields.io/badge/Laravel-%5E7%20|%20%5E8-important?style=for-the-badge\u0026logo=laravel)](https://laravel.com)\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/spresnac/laravel-create-user-cli/tests?label=GH%20Tests\u0026logo=github\u0026style=for-the-badge)](https://github.com/spresnac/laravel-create-user-cli/actions)  \n![Codecov](https://img.shields.io/codecov/c/gh/spresnac/laravel-create-user-cli?logo=codecov\u0026style=for-the-badge\u0026token=6BEX55062B)  \n[![StyleCI](https://github.styleci.io/repos/174492279/shield)](https://github.styleci.io/repos/174492279)  \n\n---\n# About this package 💡\nThis 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.\n\n---\n# Installation 💻\nFirst things first, so require the package:\n\n```\ncomposer require spresnac/laravel-create-user-cli\n```\n\nNow, register the new command within your ``app\\Console\\Kernel.php``\n```\n    protected $commands = [\n        \\spresnac\\createcliuser\\CreateCliUserCommand::class,\n    ];\n```\n---\n# Usage 💪\nThis package is very simple to use, open up your console and type\n```\nphp artisan user:create\n```\n\nWhen using it within some kind of continous deployment, use the parameter and options to get fully automated like\n```\nphp artisan user:create \"user_name\" \"user_email\" \"user_password\" --force\n```\n\nOne can get help with\n```\nphp artisan help user:create\n```\n---\n# CI environments\nThis is an overview of all result codes you can handle in ci environements:\n\nCode | Description \n-----| --------------------------------------------------------------------------------------------------------------------\n0    | all good 😃\n1    | The user with this data is already existing and was not overwritten. Use the `--force` option to overwrite the user.\n2    | There is a user exisiting with this data and there was a problem updating this database record.\n5    | You should not get this code. If you do, you may have not provided all data correct.\n\n---\n# Tests 🤓\nStart the tests like standard with\n```\ncomposer test-ci\n```\nor with\n```\nvendor/bin/phpunit\n```\n---\n# Finally 🤩\n... have fun ;)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspresnac%2Flaravel-create-user-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspresnac%2Flaravel-create-user-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspresnac%2Flaravel-create-user-cli/lists"}