PHP code example of mkhab7 / math-captcha

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

    

mkhab7 / math-captcha example snippets


$captcha  = captcha(width: 170, height: 100)->generate();


$answer = $captcha->answer();// 19


$captcha->display();

captcha()->withoutBgColor()->generate()->display()