ibibicloud / think-captcha
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ibibicloud/think-captcha
Requires
- php: >=7.2.0
- ibibicloud/think-framework: 5.1.*
This package is auto-updated.
Last update: 2026-02-21 10:49:38 UTC
README
think-captcha
基于 https://github.com/top-think/think-captcha/tree/v2.0.2
安装
composer require ibibicloud/think-captcha
路由规则
Route::get('/captcha', function(){
return captcha('', config('captcha'));
});
Route::get('/captcha','\\think\\captcha\\CaptchaController@index');
模板输出
<div>{:captcha_img()}</div>
<div><img src="{:captcha_src()}"></div>
手动验证
if ( !captcha_check($captcha) ) {
// 验证失败
};