Composer配置验证码方法

Original 2019-06-21 15:56:21 229
abstract:打开Composer中文网 找到thinkphp的扩展包列表-搜索think-captcha 点击第一个topthink/think-captcha  复制安装方法composer require topthink/think-captcha 在think根目录下执行<?phpreturn [ //验证码的字符集 'codeSet' =>

打开Composer中文网 找到thinkphp的扩展包列表-搜索think-captcha 点击第一个topthink/think-captcha  复制安装方法composer require topthink/think-captcha 在think根目录下执行



<?php
return [
 //验证码的字符集
 'codeSet' => '123456789abcdefghigklmnopqrstuvwxyz',
 //字体大小
 'fontSize' => 18,
 //是否添加混淆曲线
 'useCurve' => false;
 //验证码图片宽度/高度
 'imagW' => 150,
 'imagH' => 35,
 //验证码的位数
 'length' => 4,
 //验证成功后是否重置
 'reset' => true,
];

Correcting teacher:查无此人Correction time:2019-06-22 17:03:53
Teacher's summary:完成的不错。composer还可以安装更多软件,可以多了解。继续加油。

Release Notes

Popular Entries