PHP code example of jfoza / php-random-string
1. Go to this page and download the library: Download jfoza/php-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/ */
jfoza / php-random-string example snippets
use JFoza\PhpRandomString\RandomStringHelper;
$basicString = RandomStringHelper::basicGenerate();
$alphaString = RandomStringHelper::alphaGenerate();
$alnumString = RandomStringHelper::alnumGenerate();
$strings = RandomStringHelper::stringsGenerate();
$numericString = RandomStringHelper::numericGenerate();
$noZeroString = RandomStringHelper::noZeroGenerate();
$md5String = RandomStringHelper::md5Generate();
$sha1String = RandomStringHelper::sha1Generate();
echo $numericString;
echo $alphaString;
echo $alnumString;
echo $strings;
echo $numericString;
echo $noZeroString;
echo $md5String;
echo $sha1String;