1.1.0releasedGoogle reCaptcha

Insert and process reCaptcha field for form submission

Clone URLhttps://github.com/SagaraZD/google_recaptcha.git

Add as a submodulegit submodule add https://github.com/SagaraZD/google_recaptcha.git extensions/google_recaptcha --recursive




Symphony CMS -Google reCaptcha extension


Add this code to the head of the website

Add this code to the form

<div data-callback="recaptcha_callback" class="g-recaptcha" data-sitekey="{/data/params/recaptcha-sitekey}"></div>
<input class="recaptcha_class" name="fields[google_recaptcha]" type="hidden" value="" />

Add this JavaScript to your site

//reCaptcha callback function
    function recaptcha_callback(){
        var g_recaptcha_key = $("#g-recaptcha-response").val();

Add filter to event

Add the reCAPTCHA Verification filter to your event your form is executing

Version history

Symphony 2.6.x to 2.x.x

  • Add validateChallenge() public method

Symphony 2.6.x to 2.x.x

  • Refactor the http request to use the Gateway class

Symphony 2.6.x only