为 thinkphp6 服务的验证码包
github.com/hongchenker/ImgCaptcha
源代码
问题
安装: 10
依赖: 0
建议: 0
安全: 0
星标: 0
关注者: 1
分支: 0
开放问题: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 76d200f69579a5d24a18266b949f58f69e9fce78
This package is auto-updated.
Last update: 2024-09-17 20:53:22 UTC
thinkphp6 前后端分离验证码
composer require hck/img-captcha
在控制器的操作方法中使用
public function imgcaptcha($id = '') { return imgcaptcha($id); }
手动验证
if(!imgcaptcha_check($captcha)){ //验证失败 };