dev-master
9999999-dev https://github.com/Roquie/kohana-captchaCaptcha module for Kohana
MIT
The Requires
- php >=5.3.2
- composer/installers *
captcha kohana
Captcha module for Kohana
This is the Captcha library ported from Kohana 2.3.x to 3.x. Very little has changed API-wise, although there have been a few changes., (*1)
Instantiate a captcha:, (*2)
$captcha = Captcha::instance();, (*3)
Instantiate using your own config group (other than 'default'):, (*4)
$captcha = Captcha::instance('myconfig');, (*5)
Render a captcha:, (*6)
$captcha->render();, (*7)
or just:, (*8)
$captcha;, (*9)
Validate the captcha:, (*10)
Captcha::valid($_POST['captcha']);, (*11)
By default image-based captchas are rendered with HTML, the HTML is a very simple tag. If you want to handle your own rendering of the captcha simply set the first parameter for render() to FALSE:, (*12)
$captcha->render(FALSE);, (*13)
Captcha module for Kohana
MIT
captcha kohana