Download the PHP package wasksofts/codeigniter-math-captcha without Composer
On this page you can find all versions of the php package wasksofts/codeigniter-math-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wasksofts/codeigniter-math-captcha
More information about wasksofts/codeigniter-math-captcha
Files in wasksofts/codeigniter-math-captcha
Download wasksofts/codeigniter-math-captcha
More information about wasksofts/codeigniter-math-captcha
Files in wasksofts/codeigniter-math-captcha
Vendor wasksofts
Package codeigniter-math-captcha
Short Description captcha verification with math
License MIT
Homepage https://github.com/wasksofts/codeigniter-math-captcha
Package codeigniter-math-captcha
Short Description captcha verification with math
License MIT
Homepage https://github.com/wasksofts/codeigniter-math-captcha
Keywords codeignitermath-captcha
Please rate this library. Is it a good library?
Informations about the package codeigniter-math-captcha
CodeIgniter-math-captcha
Math CAPTCHA Library for CodeIgniter, generate random sum of numbers
Install
Install the libray for using by autoload.
usage
controller
class Test extends CI_Controller
{
public function index()
{
$this->load->library('mathcaptcha');
$this->form_validation->set_rules('captcha', 'captcha', 'trim|xss_clean|required|callback__check_captcha');
if ($this->form_validation->run()) {
echo 'success';
}
//how to controll whether to use this library or another
$data['show_captcha'] = TRUE;
$data['captcha_html'] = $this->mathcaptcha->create_captcha();
$this->load->view('form_view', $data);
}
//this is callback function for validation
public function _check_captcha($code)
{
return $this->mathcaptcha->_check_captcha($code);
}
}
add this html part to your form
<form method="post" action="<?= $this->uri->uri_string() ?>">
<table>
<tr>
<td colspan="3">
<p>Answer this math quiz : </p>
</td>
</tr>
<tr>
<td>
<?= form_input(["id" => "captcha", "name" => "captcha", "type" => "text", "placeholder" => "answer", "required" => "true"]); ?> <br>
<br />
</td>
</tr>
</table>
<button type="submit">Submit</button>
</form>
View Usage
Bugs and feature requests
Have a bug or a feature request? please email [email protected]
donate
All versions of codeigniter-math-captcha with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6|^7
The package wasksofts/codeigniter-math-captcha contains the following files
Loading the files please wait ....