PHPackages                             ed.sukharev/re-captcha-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ed.sukharev/re-captcha-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ed.sukharev/re-captcha-validator
================================

Google reCaptcha FormType and Validator for Symfony forms.

1.2.0(6y ago)010MITPHPPHP &gt;=5.3.3

Since May 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eduard-sukharev/ReCaptchaValidator)[ Packagist](https://packagist.org/packages/ed.sukharev/re-captcha-validator)[ RSS](/packages/edsukharev-re-captcha-validator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Simple Google reCAPTCHA FormType and Validator Component for Symfony2 Forms component
=====================================================================================

[](#simple-google-recaptcha-formtype-and-validator-component-for-symfony2-forms-component)

[![License](https://camo.githubusercontent.com/a8bc00ad206881b92e83b18b536db2821087a5f1a66ffed6a9d7951cf6dca662/68747470733a2f2f706f7365722e707567782e6f72672f646172696f5f737761696e2f72652d636170746368612d76616c696461746f722f6c6963656e7365)](https://packagist.org/packages/ed.sukharev/re-captcha-validator)

Really light and simple reCAPTCHA component for Symfony Forms component (does not require Symfony Framework), it's not a Bundle, you can reconfigure all components whatever you like.

You can find full documentation about Google reCAPTCHA API v2 [here](http://developers.google.com/recaptcha/intro).

Installation
------------

[](#installation)

You can install this package with [Composer](http://getcomposer.org/). Run following:

```
composer require ed.sukharev/re-captcha-validator
```

Usage Example
-------------

[](#usage-example)

Add public and private keys, and configure reCAPTCHA Form Type like a service. After this you can add reCAPTCHA type to your form:

```
