PHP code example of luzrain / pwgen
1. Go to this page and download the library: Download luzrain/pwgen 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/ */
luzrain / pwgen example snippets
use PWGen\PWGen;
/**
* Available options in the PWGen constructor. All of them are optional.
*
* length: Length of the generated password. Default: 8
* capitalize: Include at least one capital letter in the password.
* numerals: Include at least one number in the password.
* symbols: Include at least one special symbol in the password.
* secure: Generate completely random passwords.
* ambiguous: Don't