PHP code example of lorddashme / php-strong-password-generator
1. Go to this page and download the library: Download lorddashme/php-strong-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/ */
lorddashme / php-strong-password-generator example snippets
ordDashMe\StrongPasswordGenerator\StrongPasswordGenerator;
// Initialize the Strong Password Generator main class.
$strongPasswordGenerator = new StrongPasswordGenerator();
// Set the character length output.
$strongPasswordGenerator->length(25);
// Execute the generation process function.
$strongPasswordGenerator->generate();
// Get the generated output.
$strongPasswordGenerator->get(); // "abcde12345..."
txt
composer