PHP code example of elrayes / extreme-captcha

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

    

elrayes / extreme-captcha example snippets


$captcha = app('extreme-captcha')->generate(); // returns ['code' => 'ABCDE', 'image' => 'data:image/png;base64,...']
return view('auth.register', compact('captcha'));

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

use ExtremeCaptcha;
$captcha = ExtremeCaptcha::generate();
bash
php artisan vendor:publish --tag=extreme-captcha-config