abstract:如何用composer安装tthinkphp的验证码?打开cmd窗口,进入到项目目录下,执行下面这条命令composer require topthink/think-captcha如何配置验证码?在config目录下新建一个captcha.php文件<?php //验证码配置 return [ //验证码的字符集 'codeSet'&nbs
如何用composer安装tthinkphp的验证码?
打开cmd窗口,进入到项目目录下,执行下面这条命令
composer require topthink/think-captcha
如何配置验证码?
在config目录下新建一个captcha.php文件
<?php //验证码配置 return [ //验证码的字符集 'codeSet' => '0123456789abcdefghijklmnopquvwxyz', //字体大小 'fontSize' => 18, //是否添加混淆曲线 'useCurve' => false, //验证码图片宽度、高度 'imageW' => 150, 'imageH' => 35, //验证码位数 'length' => 4, //验证成功后重置 'reset' => true ];
Correcting teacher:查无此人Correction time:2019-03-22 17:20:02
Teacher's summary:完成的不错。composer还可以安装很多,可以了解下,对之后的项目有帮助。