PHPackages                             recaptcha/php5 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. recaptcha/php5

ActiveLibrary[API Development](/categories/api)

recaptcha/php5
==============

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

v2.0.0(10y ago)40704.9k↓54.2%24[2 issues](https://github.com/AlekseyKorzun/reCaptcha-PHP-5/issues)4BSDPHPPHP &gt;=5.3.0

Since Jun 17Pushed 10y ago5 watchersCompare

[ Source](https://github.com/AlekseyKorzun/reCaptcha-PHP-5)[ Packagist](https://packagist.org/packages/recaptcha/php5)[ Docs](https://github.com/AlekseyKorzun/reCaptcha-PHP-5)[ RSS](/packages/recaptcha-php5/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (7)Used By (4)

reCaptcha-PHP-5 (v2.0.0)
========================

[](#recaptcha-php-5-v200)

[![Latest Stable Version](https://camo.githubusercontent.com/6ae192597385e70a656f8370250f54115a6a5ae9fca7f1214cc99acacad1e0b0/68747470733a2f2f706f7365722e707567782e6f72672f7265636170746368612f706870352f762f737461626c65)](https://packagist.org/packages/recaptcha/php5) [![Total Downloads](https://camo.githubusercontent.com/de2596f49924be12bdd51089d7b83667cd1c19a566145f2739ba9c722bbf9e4c/68747470733a2f2f706f7365722e707567782e6f72672f7265636170746368612f706870352f646f776e6c6f616473)](https://packagist.org/packages/recaptcha/php5) [![License](https://camo.githubusercontent.com/b4a9f856da6eef118c1be5c1c565807610cc7de303acba861e2a1a70c2da0607/68747470733a2f2f706f7365722e707567782e6f72672f7265636170746368612f706870352f6c6963656e7365)](https://packagist.org/packages/recaptcha/php5)

**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 correctly 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 and applications needs.

Usage
-----

[](#usage)

### Composer install

[](#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:

```
