simplecms/nickname

1.0.1 2024-07-20 06:35 UTC

This package is auto-updated.

Last update: 2024-09-20 07:06:28 UTC


README

📦 A simple generator that can generate default nicknames

English | 简体中文

Latest Stable Version Latest Unstable Version Code Coverage Total Downloads License

Requirements

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