PHP code example of npluis / passwordgenerator

1. Go to this page and download the library: Download npluis/passwordgenerator 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/ */

    

npluis / passwordgenerator example snippets



nerator = new \Npluis\PasswordGenerator\PasswordGenerator();
$password = $generator->create();

$checker->addToBlacklist('blacklist');
$checker->checkPassword('123blacklist'); //BLACKLIST_WORD
$checker->checkPassword('BlackList'); //BLACKLIST_WORD