Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (42 sloc) 1.84 KB

reCaptcha-PHP-5 (v2.0.0)

Latest Stable Version Total Downloads License

If you are using the reCaptcha field on any of your forms and are currently using global keys, you will need to set up a Site Key and a Private Key for each site where you use the reCaptcha field.

A properly coded PHP 5 reCaptcha class that will allow you to interact with Google's reCaptcha API.

  • 100% phpDocumentator 2 code coverage
  • 100% PSR-2 code coverage
  • Composer friendly package

Feel free to extend and modify it to fit your frameworks / applications needs.


Composer install

You can install via composer:

  • visit to install composer on your system;
  • create a composer.json file in your project root:
  "require": {
      "recaptcha/php5": "v2.0.0"
  • download and install the package with composer install;
  • add this line to your application's index.php file:
require 'vendor/autoload.php';

Manual install

If you have your own autoloader, simply update namespaces and drop the files into your frameworks library.

Please see Examples directory for a simple run down of functionality.


  • The functionality is based on $_POST requests by default, you can modify it (fairly easy) to take $_GET or whatever you want instead.
  • It will always send remote address from $_SERVER['REMOTE_ADDR'] variable if you are behind Vagrant/etc, please update it (or write a setter to set remote address on the fly :))



Jump to Line
Something went wrong with that request. Please try again.