Captcha for Kohana 3.3
This is the Captcha library ported from Kohana 3.0.x to 3.3. Very little has changed API-wise, although there have been a few changes., (*1)
One significant change is that filenames are now Title Case to conform with the PSR-0 standard adopted in Kohana 3.3., (*2)
Getting Started
Instantiate a captcha:, (*3)
$captcha = Captcha::instance();, (*4)
Instantiate using your own config group (other than 'default'):, (*5)
$captcha = Captcha::instance('myconfig');, (*6)
Render a captcha to Response object (somewhere in the controller action):, (*7)
$captcha->render($this->response);, (*8)
or render captcha to HTML tag or plain text string (for 'math' and 'riddle' styles):, (*9)
$captcha->html();, (*10)
Validate the captcha:, (*11)
Captcha::valid($_POST['captcha']);, (*12)
Captcha Styles
- alpha - Image based
- basic - Image based
- black - Image based
- math - Text based
- riddle - Text based
- word - Image based