simplecms / nickname
用户昵称
v1.0.3
2026-08-31 00:21 UTC
Requires
- php: >=8.2
- laravel/framework: >=11.0
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-08-31 00:22:36 UTC
README
📦 A simple generator that can generate default nicknames
English | 简体中文
Requirements
- PHP >= 8.2
- Laravel/Framework >= 11.0
Installation
composer require simplecms/nickname
php artisan vendor:publish --provider="SimpleCMS\Nickname\NicknameServiceProvider" --tag=simplecms
Usage
use SimpleCMS\Nickname\Facades\Nickname; $nickname = Nickname::generate(); $nicknames = Nickname::generate(10);
When num is less than or equal to 1, it returns a string. Otherwise, it returns an array.
Customizing Nickname Dictionary
You can customize your own data through cms_nickname.php.
JSON Data Format
The data structure should follow the format below:
["Nickname", "Nickname2", "Nickname3"]
License
MIT