PHP code example of cohesiondx8 / rand-name-gen

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

    

cohesiondx8 / rand-name-gen example snippets


$generator = new \CohRNG\Generator();

// Jaded-Slim-Charcoal-Tortoise
echo $generator->generate();

$generator = new \CohRNG\Generator([
	'adjectives' => ['color', 'size'], 
	'delimiter' => ', '
]);

// Petite, Rouge, Koala
echo $generator->generate();