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.2"
}
}
or
composer require excelwebzone/recaptcha-bundle:^1.4.2
Register Bundle in config/bundles.php
EWZ\Bundle\RecaptchaBundle\EWZRecaptchaBundle::class ['all' => true],
add the following config to config/packages/ewz_recaptcha.yaml
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.