nebiros/google-simple-recaptcha-client

Google's Simple reCAPTCHA Client

dev-master 2014-12-30 15:26 UTC

This package is not auto-updated.

Last update: 2024-06-08 14:51:30 UTC


README

Google's simple reCAPTCHA client, this client is just a refactored version of Google's PHP reCAPTCHA lib.

Usage

use Nebiros\GoogleSimpleRecaptchaClient\Client as RecaptchaClient;

$recaptchaClient = new RecaptchaClient($recaptchaSecret);
$resp = $recaptchaClient->verifyResponse(
	$_SERVER["REMOTE_ADDR"],
	$_POST["g-recaptcha-response"]
);