PHP code example of bakerkretzmar / laravel-pwned-password-rule

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

    

bakerkretzmar / laravel-pwned-password-rule example snippets


use Bakerkretzmar\PwnedPasswordRuled\Pwned;

$request->validate([
    'email' => ['

$request->validate(['password' => ['

// Fails for 'password', passes for 'alpaca999' which appears 3 times

$request->validate(['password' => ['

// Under the hood, returns at least 800 password hashes regardless of how many matched the query

$request->validate(['password' => ['