PHP code example of edward1108 / edward-captcha
1. Go to this page and download the library: Download edward1108/edward-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/ */
edward1108 / edward-captcha example snippets
CaptchaApi::check($code,$key);
其中code为用户输入的验证码, key为上面返回到key 用于替代session, 同时使用cache作为缓冲