ibibicloud / tp5-captcha
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ibibicloud/tp5-captcha
Requires
- php: >=7.2.0
- ibibicloud/tp5-framework: *
This package is auto-updated.
Last update: 2025-09-28 06:13:08 UTC
README
tp5-captcha
基于 https://github.com/top-think/think-captcha/tree/v2.0.2
安装
composer require ibibicloud/tp5-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) ) {
// 验证失败
};