Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.26 KB

readme.md

File metadata and controls

38 lines (27 loc) · 1.26 KB

[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.