PHP code example of koenhoeijmakers / paper-key-generator

1. Go to this page and download the library: Download koenhoeijmakers/paper-key-generator 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/ */

    

koenhoeijmakers / paper-key-generator example snippets


$paperKey = new PaperKeyGenerator(new EnglishWordList());
$paperKey = PaperKeyFactory::english();

$paperKey->make();

// surface curtain method raw swap bitter zone pink seat rookie marble dog

$paperKey->setDivider('-')->setCount(6)->make();

// doctor-clown-settle-material-smooth-away

$paperKey->make([
    'divider' => '=',
    'count'   => 8,
]);

//