kenjis/ci3-like-captcha
最新稳定版本:v1.1.1
Composer 安装命令:
composer require kenjis/ci3-like-captcha
包简介
CodeIgniter3-like Captcha
关键字:
README 文档
README
This project provides CodeIgniter3-like Captcha.
- This is not 100% compatible with CI3's CAPTCHA Helper.
- This uses php-simple-captcha.
Requirements
- PHP 7.4 or later
Installation
$ composer require kenjis/ci3-like-captcha
Usage
See https://codeigniter.com/userguide3/helpers/captcha_helper.html.
Instead of create_captcha(), use Captcha::createCaptcha().
use Kenjis\CI3Like\Captcha\Captcha; $vals = [ 'word' => random_string('numeric', 4), 'img_path' => FCPATH . 'captcha/', 'img_url' => base_url() . '/captcha/', ]; $cap = Captcha::createCaptcha($vals); $data = [ 'captcha_id' => '', 'captcha_time' => $cap['time'], 'word' => $cap['word'], ];
License
This package is licensed using the MIT License.
Please have a look at LICENSE.
统计信息
- 总下载量: 7.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-02