PHP code example of hosteurope / password-generator
1. Go to this page and download the library: Download hosteurope/password-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/ */
hosteurope / password-generator example snippets
$generator = new \PasswordGenerator\Generator;
$generator->uireSymbol(1)
->length(16);
var_dump($generator->get()); // string(16) "ZE0ff_Rgb6uGq28w"
var_dump($generator->get()); // string(16) "r5zRLn+8o#(gGffa"
$generator->addCharacterType('myCharacterType', $customCharacterType);
$generator->