PHP code example of lyne007 / auth-recaptcha

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

    

lyne007 / auth-recaptcha example snippets


'extensions' => [
    'auth-recaptcha' => [
        // set to false if you want to disable this extension
        'enable' => true,
        // set to false if you want to disable icon
        'iconDisplay' => true,
        // reCAPTCHA:v3 keys  
        'siteKey' => 'your google reCAPTCHA site key',
        'secretKey'  => 'your google reCAPTCHA secret key',
    ]
],

'excepts' => [
    'auth/login',
    'auth/logout',
    // add
    'auth/api/recaptcha' 
],