PHP code example of katmore / intl-rand-string

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

    

katmore / intl-rand-string example snippets


$randString = new IntlRandString\Charset\Cyrillic();
echo $randString->randomString(12);

$randString = new IntlRandString\Charset\English();
echo $randString->randomString(12);

$randString = new IntlRandString\Charset\German();
echo $randString->randomString(12);

$randString = new IntlRandString\Charset\Italian();
echo $randString->randomString(12);

$randString = new IntlRandString\Charset\Spanish();
echo $randString->randomString(12);
sh
$ bin/devel/make-charset.php --help