PHP code example of zanderwar / namify

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

    

zanderwar / namify example snippets


use Zanderwar\Namify\Namify;

$name = Namify::generate(); // FunnyZebra

use Zanderwar\Namify\Namify;

for ($i = 0; $i < 10; $i++) {
    $name = Namify::generate(unique: true); // FunnyZebra, CutePanda, SmellyTiger, etc.
}

use Zanderwar\Namify\Namify;

$name = Namify::generate(maxLength: 20); // FunnyZebra