2017 © Pedro Peláez
 

symfony-bundle recaptcha-bundle

Symfony - Whatson Web - RecaptchaBundle

image

whatson-web/recaptcha-bundle

Symfony - Whatson Web - RecaptchaBundle

  • Thursday, May 17, 2018
  • by whatson-dev
  • Repository
  • 3 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 22 % Grown

The README.md

Installation

Bundle

JS

Insérez la librairie Google avec la balise :, (*1)

<script src='https://www.google.com/recaptcha/api.js'></script>

Config

wh_recaptcha:
    public_key: ''
    private_key: ''

Mise en place sur un formulaire

FormType

Ajouter un champ dans le formulaire, ex :, (*2)

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

Thème

Appliquer le thème au formulaire :, (*3)

{% form_theme form with ['my_base.html.twig', 'WHRecaptchaBundle:Form:fields.html.twig'] %}

The Versions

17/05 2018

dev-master

9999999-dev https://github.com/whatson-web/RecaptchaBundle

Symfony - Whatson Web - RecaptchaBundle

  Sources   Download

MIT

by Whatson Web - Developers