PHP code example of davidvandertuijn / password

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

    

davidvandertuijn / password example snippets


use Davidvandertuijn\Password;

Password::generate();

Password::generate(
    8, // Password length.
    true, // Include lowercase characters.
    true, // Include uppercase characters.
    true, // Include numbers.
    true, // Include symbols.
    true, // Exclude similar characters.
    true // Exclude ambiguous characters.
);