PHP code example of didatus / random-string

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

    

didatus / random-string example snippets


use Didatus\RandomString\RandomString;
$randomString = new RandomString();

use Didatus\RandomString\RandomString;
$randomString = new RandomString('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1IO0');

$randomString = new RandomString();
$string = $randomString->getString(10);

$randomString = new RandomString('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1IO0');
$string = $randomString->getString(10);

$randomString = new RandomString();
$strings = $randomString->getListOfString(10, 5);