The following is showing how you can use the Recaptcha form field.
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(),
];
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.