PHP code example of chinayin / random-nickname

1. Go to this page and download the library: Download chinayin/random-nickname library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chinayin / random-nickname example snippets



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

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


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