reCAPTCHA Validator in two lines.
validator = new recaptchaValidator( "YOUR_SECRET_KEY" );
validator->validate();
- Server side validation of Google's reCAPTCHAs.
- Easy to use. Just two lines of code. No external dependencies.
- Support for reCAPTCHA of V2. google.com/recaptcha
- Register your site on Google's recaptcha.
- Get your Site Key and Secret Key.
- Require
google-recaptcha-validator.php
class on your project. - Create an instance of the validator passing in your key.
new GoogleRecaptchaValidator( "YOUR_SECRET_KEY" )
- Use the
validate()
method to trigger the validation. - Expect
true
orfalse
as returning value.
reCAPTCHA is a free service that protects your website from spam and abuse. It uses an advanced risk analysis to keep automated software from engaging in abusive activities on your site.