Download the PHP package grantholle/laravel-username-generator without Composer
On this page you can find all versions of the php package grantholle/laravel-username-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grantholle/laravel-username-generator
More information about grantholle/laravel-username-generator
Files in grantholle/laravel-username-generator
Package laravel-username-generator
Short Description Generate a random, kid-safe username.
License MIT
Homepage https://github.com/grantholle/laravel-username-generator
Informations about the package laravel-username-generator
Generate a random, kid-safe username.
Generate a username with flexible configuration options. For now the nouns are animal names.
Installation
You can install the package via composer:
You can optionally publish the config file with:
By default, it will generate a username studly case with 1 adjective, 1 noun and no numeric prefix. You can modify the config file with your preferred numbers:
Usage
You can leverage your config setup to generate a username based on those options. Using the above configuration as an example, this would generate a username as adjective-adjective-noun-##
:
Or, if you want to configure your username on the fly, you can use a fluent API to build your username:
Command
This also comes with a make:username
command to generate a username from the command line:
You can pass in a number of options to change how the username is generated:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Want to add a noun or adjective? Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-username-generator with dependencies
illuminate/contracts Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.9.2