Google reCAPTCHA PHP Class

by Tribulant Software

Test It Out

Test out Google reCAPTCHA with PHP by using the no captcha reCAPTCHA, then click "Verify Response" to see if it is correct.

Using the Google reCAPTCHA PHP Class

To start using the Google reCAPTCHA PHP class, follow these steps below.

1. Download the ZIP

Download the ZIP file with all the files from the Github recaptcha repository.

Download

3. Copy Class Files

There is a main class.recaptcha.php file and then a class.http.php file. Copy both files over to where you want to use it.

2. Get reCAPTCHA Keys

Add your domain(s) to get a site- and secret key for Google reCAPTCHA.

Get reCAPTCHA Keys

4. Reference Example

The example file is index.php which shows you how to use the reCAPTCHA PHP class.

PHP reCAPTCHA Example

Here is a quick example on how to use the class, it really is easy!