22/02
2018
Wallogit.com
2017 © Pedro Peláez
tencent captcha package for thinkphp5
thinkphp5 腾讯验证码类库, (*1)
composer require tj646/think-tcaptcha, (*2)
<?php
return [
'secret_id' => '***',
'secret_key' => '***'
];
<div>{:tcaptcha('register',320,40,0)}</div>
if(!tcaptcha_check($ticket)){
//验证失败
};