Skip to content

PingusPepan/ReCaptchaControl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reCAPTCHA for Nette Framework

Installation

composer require uestla/recaptcha-control

For frontend javascript that activates reCAPTCHA(s), use

bower install

Usage

config.neon

extensions:
	reCaptcha: ReCaptchaControl\ReCaptchaExtension

reCaptcha:
	siteKey: '<your_site_key>'
	secretKey: '<your_secret_key>'
	methodName: 'addReCaptcha' # optional

Form

$form->addReCaptcha('captcha', NULL, "Please prove you're not a robot.");

Template

The most robust way to render reCAPTCHA is to do it by hand. Take a look at recaptcha.js where this is done using native javascript DOM manipulation supported by all modern browsers.

And that's it!

Packages

No packages published

Languages

  • PHP 80.8%
  • JavaScript 10.4%
  • HTML 8.8%