Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (31 loc) · 975 Bytes

recaptcha.md

File metadata and controls

44 lines (31 loc) · 975 Bytes

Recaptcha Form Field

The following is showing how you can use the Recaptcha form field.

Installation

First of all you need to install ewz's RecaptchaBundle, if this bundle is missing it will not work.

{
    "require": {
        "excelwebzone/recaptcha-bundle": "^1.4"
    }
}

or

composer require excelwebzone/recaptcha-bundle:^1.4

Register Bundle in app/AbstractKernel.php

Add the bundle the the AbstractKernel.

$bundles = [
    new EWZ\Bundle\RecaptchaBundle\EWZRecaptchaBundle(),
];

Config

add the following config to app/config/config.yml

ewz_recaptcha:
    public_key:  <insert_your_public_key>
    private_key: <insert_your_private_key>

Visit https://www.google.com/recaptcha/ to get the public and private key.
or visit https://developers.google.com/recaptcha/docs/faq to get test keys.