Skip to content

treeindev/recaptcha-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[PHP] Google reCAPTCHA Validator

    

    

reCAPTCHA Validator in two lines.

validator = new recaptchaValidator( "YOUR_SECRET_KEY" );
validator->validate();

    

Features

  • 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

    

How to use

  1. Register your site on Google's recaptcha.
  2. Get your Site Key and Secret Key.
  3. Require google-recaptcha-validator.php class on your project.
  4. Create an instance of the validator passing in your key. new GoogleRecaptchaValidator( "YOUR_SECRET_KEY" )
  5. Use the validate() method to trigger the validation.
  6. Expect true or false as returning value.

    

What is a reCAPTCHA?

Offical Website

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.

About

Server side validation of Google's reCAPTCHAs using PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages