PHP code example of jormin / geetest

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

    

jormin / geetest example snippets


echo $geetest->captcha();

// 校验结果为 true 或 false
$geetest->validate($_POST['geetest_challenge'], $_POST['geetest_validate'], $_POST['geetest_seccode']);
 php
// $config 参数见下方[配置项]
$geetest = new \Jormin\Geetest\Geetest($config);
 php
<?= $geetest->view();