PHPackages                             devstrefa/recaptcha - 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. [Security](/categories/security)
4. /
5. devstrefa/recaptcha

ActiveLibrary[Security](/categories/security)

devstrefa/recaptcha
===================

PHP Library to verify google reCaptcha challenge

1.0.0(10y ago)017MITPHPPHP &gt;=5.3.2

Since Mar 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/DevStrefa/ReCaptcha)[ Packagist](https://packagist.org/packages/devstrefa/recaptcha)[ Docs](https://github.com/google/recaptcha/)[ RSS](/packages/devstrefa-recaptcha/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ReCaptcha 1.0.0
===============

[](#recaptcha-100)

[![Build Status](https://camo.githubusercontent.com/1f72898fce4d7b714b511358a2fc6239ba16269a9b156811bdf44cb9e1d7286a/68747470733a2f2f7472617669732d63692e6f72672f4465765374726566612f5265436170746368612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DevStrefa/ReCaptcha)

Simple PHP Library, designed for verifications of Google reCaptcha.

### Why ?

[](#why-)

Simple answer for this question is "I really don't know" :) but seriously, it is very simple project ideal for learning several PHP-Development tools, and if this library could be usefull for someone else that's great.

### How to install

[](#how-to-install)

Library is compatible with [composer](https://getcomposer.org/) so You can install it by adding:

```
"require": {
        "devstrefa/recaptcha": "1.0.x-dev"
    }

```

to Your composer.json file

You can also download zip file and include all necessery files by yourself

### How to use package

[](#how-to-use-package)

After installing / downloading package you can use it in very simple way. First of all if you are not using Composer autoloader (or any PSR-4 compatible loader) You should be sure that You include all necessery files, after that it's very simple.

Before you start integrate reCaptcha on your site visit [reCaptcha Page](https://www.google.com/recaptcha/intro/index.html) and generate pair of keys, You can do this by clicking get reCaptch button.

Next add to your html file in &lt;head&gt; section:

```

```

after that insert this code in place where you want to display your captcha widget (it must be inside &lt;form&gt;&lt;/form&gt; tags)

```

```

Now when you refresh page you should see reCaptcha widget, if it's working You can go now to PHP part

Whole code is really simple:

```
