chinayin/random-nickname

PHP中随机生成用户昵称

v1.0.2 2022-04-24 11:52 UTC

This package is auto-updated.

Last update: 2024-10-22 11:11:08 UTC


README

Author Software License Latest Version Total Downloads php 7.2+

安装

运行环境要求 PHP 7.2 及以上版本。

composer require chinayin/random-nickname

使用

# 生成单个
RandomNickname::generate();

# 生成多个
RandomNickname::batchGenerate();

生成规则

  • 形容词名词
  • 名词名词2
  • 名词名词2
  • 名词名词2

样例:

["秀发爱魔镜","金鱼爱胡萝卜","长情的翅膀","黑米爱草丛","秋天与猎豹","尊云与路灯","缥缈的摩托","沉默的蓝天","舞蹈和小蜜蜂","花卷与期待"]
["路灯爱小海豚","蜻蜓爱大侠","口红爱含羞草","水壶和音响","受伤的星月","西牛与微笑","落后的小猫咪","背包爱玫瑰","奇异果爱裙子","钻石爱蜜粉"]