DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

# Integration¶

To make use of this extension is quite easy as there is only one service needed. By instantiating the EvowebRecaptchaServicesCaptchaService it’s possible to render and validate the captcha. Beside the service there are a ViewHelper and a Validator for use in extbase extensions.

## Integration in your own code¶

To render you are able to let the service take care of the output by calling getReCaptcha.

$output = \Evoweb\Recaptcha\Services\CaptchaService::getInstance()->getReCaptcha();  Please keep in mind that it only renders the captcha. If you need something to trigger the validation in your controller it’s up to you to add the code. ### Render on your own¶ If you prefer to render on your own its possible to let the service prepare the settings for you. Get settings to render individually $captchaService = \Evoweb\Recaptcha\Services\CaptchaService::getInstance();
$configuration =$captchaService->getConfiguration();
$showCaptcha =$captchaService->getShowCaptcha();


By using this you need to render the html completely on your own.

### Validate submitted form¶

To validate just call the validateReCaptcha method and you get the result of the validation to check against.