PHP code example of yurichandra / maker

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

    

yurichandra / maker example snippets


$maker = new Maker(['type' => 'lowercase']);

//Prefix
$maker = new Maker([
    'type' => 'lowercase'
    'prefix' => 'TKP-'
]);

// Suffix
$maker = new Maker([
    'type' => 'lowercase'
    'prefix' => '-CTP'
]);

//Generate method
$vouchers = $maker->generate($length_of_character, $amount_of_vouchers)

//Generate six base method
$vouchers = $maker->generateSixBase($amount_of_vouchers)

//Generate method
$vouchers = $maker->generateEightBase($amount_of_vouchers)