PHP code example of nicolaskuster / laravel-memorable-passwords

1. Go to this page and download the library: Download nicolaskuster/laravel-memorable-passwords 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/ */

    

nicolaskuster / laravel-memorable-passwords example snippets


for ($i = 0; $i < 10; $i++) {
    \Nicolaskuster\MemorablePasswords\MemorablePassword::generate();
}

return [
    'number_of_parts'=> 2,
    'number_of_uppercase_letters'=> 2,
    'number_of_numbers'=>2,
    'words' => [
        //...
    ],
    'delimiters' => [
        '-',
        '.',
        '_',
    ]
]
bash
php artisan vendor:publish --provider="Nicolaskuster\MemorablePasswords\Providers\MemorablePasswordServiceProvider"