simplecms / nickname
用户昵称
1.0.1
2024-07-20 06:35 UTC
Requires
- php: >=8.2
- laravel/framework: >=11.0
This package is auto-updated.
Last update: 2025-02-20 08:02:41 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
Includes a distance method.
use SimpleCMS\Nickname\Facades\Nickname; Nickname::generate(int $num = 1); // 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