2017 © Pedro Peláez
 

library pudge-captcha

captcha package for thinkphp5

image

1032443065/pudge-captcha

captcha package for thinkphp5

  • Friday, September 29, 2017
  • by 1032443065
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

think-captcha

thinkphp5 验证码类库, (*1)

安装

composer require topthink/think-captcha, (*2)

使用

模板里输出验证码

<div>{:captcha_img()}</div>

或者, (*3)

<div><img src="{:captcha_src()}" alt="captcha" /></div>

上面两种的最终效果是一样的, (*4)

控制器里验证

使用TP5的内置验证功能即可, (*5)

$this->validate($data,[
    'captcha|验证码'=>'require|captcha'
]);

或者手动验证, (*6)

if(!captcha_check($captcha)){
 //验证失败
};

The Versions

29/09 2017

dev-master

9999999-dev

captcha package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by Avatar 1032443065

29/09 2017

1.1.6

1.1.6.0

captcha package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by Avatar 1032443065

11/04 2017

1.1.5

1.1.5.0

captcha package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by Avatar yunwuxin

06/04 2017

1.1.4

1.1.4.0

captcha package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by Avatar yunwuxin

30/03 2017

1.1.3

1.1.3.0

captcha package for thinkphp5

  Sources   Download

Apache-2.0

by Avatar yunwuxin