romeoz/rock-captcha
最新稳定版本:0.11.0
Composer 安装命令:
composer require romeoz/rock-captcha
包简介
Captcha library
README 文档
README
Features
- Multi providers
- Write code to session
- Standalone module/component for Rock Framework
Installation
From the Command Line:
composer require romeoz/rock-captcha
In your composer.json:
{
"require": {
"romeoz/rock-captcha": "*"
}
}
Quick Start
use rock\captcha\KCaptcha; $captcha = new KCaptcha(); echo '<img src="' . $captcha->getDataUri() . '">'; $captcha->getCode(); // output: <code>
Write to session:
Required install Rock Session.
composer require romeoz/rock-session
Example:
$config = [ 'session' => new \rock\session\Session ]; $captcha = new KCaptcha($config); echo '<img src="' . $captcha->getDataUri() . '">'; $captcha->getSession(); // output: <code>
Requirements
- PHP 5.4+
- For write code to session required Rock Session:
composer require romeoz/rock-session - For using GregwarCaptcha required gregwar/captcha:
composer require gregwar/captcha:1.* - For using SecurimageCaptcha required dapphp/securimage:
composer require dapphp/securimage:3.6.*
All unbolded dependencies is optional.
License
Captcha library is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-23