Developed with love by KnpLabs Hire us for your project!
23

PRRecaptchaBundle

by prugala

Recaptcha v3 bundle for Symfony

RecaptchaBundle

Recaptcha v3 bundle for Symfony

Latest Stable Version
Total Downloads
License

Build Status

Instalation

composer require prugala/recaptcha-bundle

Register bundle in AppKernel.php file:

new PR\Bundle\RecaptchaBundle\PRRecaptchaBundle()

Configuration

pr_recaptcha:
    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: 'www.google.com' # optional / default value: www.google.com **

* When you hide badge inform visitors that reCAPTCHA is implemented on website:
https://developers.google.com/recaptcha/docs/faq#hiding-badge

** If you plan to use reCAPTCHA globally please use host www.recaptcha.net.
More informations:
https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally

How to use

Add field with type RecaptchaType to your form, example:

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

TODO

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

Copyright (c) 2019 Piotr Rugała

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
  • fix / HTML Link tag (#11)
    By web-flow, 1 month ago
  • feature / Code quality (#10)
    By web-flow, 1 month ago
  • Merge pull request #9 from prugala/feature/new-option-enabled
    By web-flow, 1 month ago
  • feature / New option: enabled
    By prugala, 1 month ago
  • Merge pull request #8 from prugala/feature/improvements
    By web-flow, 1 month ago
  • feature / Improvements and tests
    By prugala, 1 month ago
  • Merge pull request #7 from prugala/feature/improvements
    By web-flow, 1 month ago
  • feature / Improvements and tests
    By prugala, 1 month ago
  • Merge pull request #6 from prugala/feature/hide-badge-option
    By web-flow, 1 month ago
  • feature / Hide badge option
    By prugala, 1 month ago
  • fix / form field label
    By prugala, 1 month ago
  • Merge pull request #5 from LesVikings/master
    By web-flow, 1 month ago
  • Fixed case sensitivity issue.
    By Léopold Baillard, 1 month ago
  • Update README.md
    By web-flow, 1 month ago
  • Merge pull request #4 from prugala/fixes
    By web-flow, 1 month ago
  • fixes
    By prugala, 1 month ago
  • License
    By web-flow, 1 month ago
  • init
    By prugala, 1 month ago
  • Initial commit
    By web-flow, 1 month ago