PHP code example of looplinguist / random-password-generator

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

    

looplinguist / random-password-generator example snippets



use LoopLinguist\RandomPasswordGenerator\GeneratePassword;

    //  ... 

   $generatePassword = new GeneratePassword();
   $generatedPassword = $generatePassword->generatePassword();



use LoopLinguist\RandomPasswordGenerator\GeneratePassword;

    //  ... 

   $generatePassword = new GeneratePassword();
   $generatePassword
        ->removeSymbols(false);
   $generatedPassword = $generatePassword->generatePassword();

bash
php artisan vendor:publish --tag=random-password-generator-config