PHP code example of sebastan12 / random-password
1. Go to this page and download the library: Download sebastan12/random-password 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/ */
sebastan12 / random-password example snippets
//Require Composer Autoload
ssword;
//How to generate a password
$generator = new RandomPassword();
echo $generator->getRandomPassword();
//Using parameters to generate a 32 char logn password
//that does not use special chars
$generator = new RandomPassword(32, false);
echo $generator->getRandomPassword();