Skip to content

YadYehuda/kohana-captcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

One significant change is that filenames are now Title Case to conform with the PSR-0 standard adopted in Kohana 3.3.

##Getting Started

Instantiate a captcha:

$captcha = Captcha::instance();

Instantiate using your own config group (other than 'default'):

$captcha = Captcha::instance('myconfig');

Render a captcha:

$captcha->render();

or just:

$captcha;

Validate the captcha:

Captcha::valid($_POST['captcha']);

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:

$captcha->render(FALSE);

##Captcha Styles

  • alpha
  • basic
  • black
  • math
  • riddle
  • word

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%