PHP code example of yonghua4413 / imagecaptcha
1. Go to this page and download the library: Download yonghua4413/imagecaptcha 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/ */
yonghua4413 / imagecaptcha example snippets
//加载
use Imagecaptcha\YYImagecode;
//生成
YYImagecode::make();
//后端验证
$code = $_SESSION['code'];