Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fuel package to handle reCAPTCHA

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

ReCaptcha

ReCaptcha is a Fuel package that handles calling reCAPTCHA.

Usage

To get captcha html:

$captcha_html = ReCaptcha::instance()->get_html();

To validate user entry:

if (ReCaptcha::instance()->check_answer(Input::real_ip(), Input::post('recaptcha_challenge_field'), Input::post('recaptcha_response_field')))
{
    // valid
}
else
{
    // invalid
}
Something went wrong with that request. Please try again.