VividCortex php-recaptcha-validator

Posted by Anna Navatsyk on Apr 6, 2015 8:51:00 AM

We recently updated our angular-recaptcha to use the new Google’s simplified captcha.

Validations must be done server side, so one of our brainiacs created php-recaptcha-validator as a companion to angular-recaptcha. You can do this in whatever language you prefer; this is an option for PHP and is MIT licensed.

The README file contains the simple steps to install and use it.

To install, simply add your project requirement using composer

You will need to instantiate a new validator with your secret key provided by Google.

$validator = new Validator($secret);

Then, you can move on to validating responses. The response and the client’s IP are required.

// Returns TRUE or FALSE
$result = $validator->validate($response, $clientIp);

As always, we welcome comments and contributions.

Recent Posts

Posts by Topic

see all