PHP code example of satish / randomcodegenerate

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

    

satish / randomcodegenerate example snippets



RandomCodes = new RandomCodes\RandomCodes();
echo $objRandomCodes->generateCode();// 12 digit random number generate

echo $objRandomCodes->generateAlphabets($length = 8, $isCapital = true);

echo $objRandomCodes->generateNumericCode($length = 8, $incZero = true);

echo $objRandomCodes->generateAlphaNumeric($length = 8, $isCapital = true);