zoneroot/recaptcha
Composer 安装命令:
composer require zoneroot/recaptcha
包简介
Simple recaptcha class
关键字:
README 文档
README
Simple recaptcha static php class.
Installation
With composer :
"zoneroot/recaptcha": "dev-master"
Usage
First you need to init the recaptcha with your keys :
use \zoneroot\recaptcha\recaptcha; recaptcha::init("public key", "private key");
Then in your head tag insert :
echo recaptcha::script()
Next in your form tag insert :
echo recaptcha::html()
Finally you must check if the captcha is valid :
try { recaptcha::check() echo "Captcha is valid"; } catch (\zoneroot\recaptcha\exceptions\invalidRecaptchaException $e) { echo $e->getMessage(); } catch (\zoneroot\recaptcha\exceptions\connectionException $e) { echo $e->getMessage(); }
Contributing
For contributing just follow the code style.
Todo
Add some comment
####Inspired by grafikart
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GNU
- 更新时间: 2015-01-17