chinayin / random-nickname
PHP中随机生成用户昵称
v1.0.2
2022-04-24 11:52 UTC
Requires
- php: >=7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-12-22 11:40:04 UTC
README
安装
运行环境要求 PHP 7.2 及以上版本。
composer require chinayin/random-nickname
使用
# 生成单个 RandomNickname::generate(); # 生成多个 RandomNickname::batchGenerate();
生成规则
形容词
的名词
名词
爱名词2
名词
和名词2
名词
与名词2
样例:
["秀发爱魔镜","金鱼爱胡萝卜","长情的翅膀","黑米爱草丛","秋天与猎豹","尊云与路灯","缥缈的摩托","沉默的蓝天","舞蹈和小蜜蜂","花卷与期待"] ["路灯爱小海豚","蜻蜓爱大侠","口红爱含羞草","水壶和音响","受伤的星月","西牛与微笑","落后的小猫咪","背包爱玫瑰","奇异果爱裙子","钻石爱蜜粉"]