PHP code example of ajur-media / kcaptcha

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

    

ajur-media / kcaptcha example snippets


use AJUR\Template\KCaptcha;

   'width' => 120,
    'height' => 60,
    'fluctuation_amplitude' => 4,
    'no_spaces' => false,
    'show_credits' => false,
    'length' => mt_rand(4, 6),
    'use_distortion'    => true,
    'white_noise_density' => 1 / 8,
    'black_noise_density' => 1 / 30,
]);

$captcha->display('gif', 'test.gif');