lotus / captcha
此包最新版本(1.0.0)没有提供许可信息。
创建和验证验证码图片
1.0.0
2017-04-14 18:40 UTC
Requires
- php: ^5.3.3 || ^7.0
- ext-gd: *
This package is not auto-updated.
Last update: 2024-09-23 15:41:03 UTC
README
使用pw captcha非常容易构建纹理验证码。
将库文件包含到您的页面中。创建PwCaptcha类的对象。
require_once 'src/Captcha.php'; $captcha = new lotus/Captcha();
要获取验证码图片的输出,请使用
$captcha->render();
配置方法
$captcha->setIsMultiColourText(布尔值)
设置最小字符数 $captcha->setMinLength()
设置最大字符长度 $captcha->setMaxLength()
设置背景中的随机直线数量
$captcha->setNumberOfLines()
最小1,最大100