PHP code example of dastanaron / codegenerator

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

    

dastanaron / codegenerator example snippets


use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

echo $codegen->generate();


use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

$codegen->length = 9;

echo $codegen->generate();


use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

$codegen->length = 9;

$codegen->lat_symbols = ['a', 'b', 'c', 'd'];

$codegen->num_symbols = [1, 2, 3, 4];

echo $codegen->generate();


php composer.phar