tanchengjin/captcha

1.1.0 2020-05-13 09:49 UTC

This package is auto-updated.

Last update: 2025-03-13 22:22:35 UTC


README

PHP Captcha

Demo

captcha

安装

composer

composer require tanchengjin/captcha

github

git clone git@github.com:tanchengjin/captcha.git

使用 use

直接显示验证码

echo new Captcha($w,$h,$num)

链式方法

自定义要生成的字符串,如生成纯数字
$captcha=new Captcha();
echo $captcha->setText('0123456789')->display();

校验

Captcha::verify('');