PHP code example of boolxy / random

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

    

boolxy / random example snippets


use Boolxy\Random\Random;

// Number (Example result: 5793)
// Default length = 4
$result = Random::num($length);

// String (Example result: drkmwmlr)
// Default length = 8
$result = Random::str($length);

// Alphanumeric (Example result: Y20U89C9KEYSqcKw)
// Default length = 16
$result = Random::alpha($length);
bash
  composer fix