PHP code example of timgreenwood / password-generator
1. Go to this page and download the library: Download timgreenwood/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/ */
timgreenwood / password-generator example snippets
// Generate a random password string with the default settings: 4 words separated by hyphens
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate()
// Generate a random password string with 3 words, separated by hyphens
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate(3)
// Generate a random password string with 5 words, separated by underscores
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate(5, '_')