PHP code example of devwizardhq / wiz-captcha

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

    

devwizardhq / wiz-captcha example snippets


<form method="POST" action="/contact">
    @csrf

    {!! wiz_captcha_img('default', ['id' => 'captcha-image']) !!}

    <button type="button" onclick="refreshCaptcha()">Refresh</button>

    <input type="text" name="captcha" -captcha.image') }}?" + Date.now();
}
</script>

use DevWizardHQ\Captcha\Rules\CaptchaRule;

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

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

$captcha = wiz_captcha_api('math');

use DevWizardHQ\Captcha\Rules\CaptchaApiRule;

$request->validate([
    'captcha_key' => ['
bash
php artisan vendor:publish --tag="wiz-captcha-config"