PHP code example of ngiusti / random-string-generator
1. Go to this page and download the library: Download ngiusti/random-string-generator 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/ */
ngiusti / random-string-generator example snippets
use RandomStringGenerator\RandomStringGenerator;
$generator = new RandomStringGenerator();
$generator->generate('lldd'); // "ol68"
use RandomStringGenerator\RandomStringGenerator;
$generator = new RandomStringGenerator();
$generator->generate('LL'); // "VR"
use RandomStringGenerator\RandomStringGenerator;
$generator = new RandomStringGenerator();
$generator->generate('pp'); // "?!"
use RandomStringGenerator\RandomStringGenerator;
$generator = new RandomStringGenerator();
$generator->generate('ll-'); // "yz-"
use RandomStringGenerator\RandomStringGenerator;
$generator = new RandomStringGenerator();
$generator->generate('dd\\l\\L\\d\\p'); // "39lLdp"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.