PHP code example of myaghobi / f3-captcha

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

    

myaghobi / f3-captcha example snippets

 php
$f3->route('GET /captcha', 'Captcha->makeCaptchaImage');
 php
$f3->set('captcha', \Captcha::instance()->serve());
 php
if (\Captcha::verify()) {
...