PHP code example of changxiaoming / fill-name

1. Go to this page and download the library: Download changxiaoming/fill-name 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/ */

    

changxiaoming / fill-name example snippets

 php 
 $name =  Genwords::getInstance()->getRandName();
 php 
 $name =  Genwords::getInstance()->setGender('female')->getRandName()  ;
 php 
for($i=0;$i<100;$i++){
    echo ( Genwords::getInstance()->getRandName() ) . "  " ;
    if(($i+1) %5 == 0){
        echo "\n";
    }
}