PHP code example of devuri / secure-password
1. Go to this page and download the library: Download devuri/secure-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/ */
devuri / secure-password example snippets
use Urisoft\PasswordGenerator;
$password = PasswordGenerator::generatePassword();
echo "Generated Password: $password" . PHP_EOL;
$password = PasswordGenerator::generatePassword(12, false);
echo "Generated Password (without special chars): $password" . PHP_EOL;
$passcode = PasswordGenerator::generatePasscode();
echo "Generated Passcode: $passcode" . PHP_EOL;
$passcode = PasswordGenerator::generatePasscode(8);
echo "Generated Passcode (8 digits): $passcode" . PHP_EOL;