reCAPTCHA v3 bundle for Symfony

Installs: 9 724

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 1

Forks: 6

Open Issues: 8


1.3.2 2020-02-26 10:15 UTC


Recaptcha v3 bundle for Symfony

Latest Stable Version Total Downloads License

Build Status


composer require prugala/recaptcha-bundle

Register bundle in AppKernel.php file:

new PR\Bundle\RecaptchaBundle\PRRecaptchaBundle()


    public_key: 'public key'
    secret_key: 'secret key'
    enabled: false # optional / default value: true - you can disable it for local or test env
    score_threshhold: 'score' # optional / default value: 0.5
    hide_badge: true # optional / default value: false *
    host: '' # optional / default value: **

* When you hide badge inform visitors that reCAPTCHA is implemented on website:

** If you plan to use reCAPTCHA globally please use host More informations:

How to use

Add field with type RecaptchaType to your form, example:

->add('captcha', RecaptchaType::class)

Options available:

->add('captcha', RecaptchaType::class, [
    'script_nonce_csp' => $nonce,
    'action_name' => 'contact_form'
  • script_nonce_csp: Nonce for Content-Security-Policy header
  • action_name: Form specific action name


  1. Support for version v2
  2. Waiting for suggestions :)