This is a PHP library that wraps up the server-side verification step required to process responses from the GeeTest service.
The preferred way to install this extension is through composer.
Either run
composer require onliner/geetest-php-sdk:^1.0
or add this code line to the require
section of your composer.json
file:
"onliner/geetest-php-sdk": "^1.0"
const ID = '58f984fb3d1f7f4732a74b3cda273eed';
const KEY = '58f984fb3d1f7f4732a74b3cda273eed';
$geetest = new GeeTest(ID, KEY);
$register = $geetest->register()->toArray();
$geetest = new GeeTest(ID, KEY);
$geetest->validate($challenge, $validate, $seccode, true);
$geetest = new GeeTest(ID, KEY);
$geetest->validate($challenge, $validate, $seccode, false);
Released under the MIT license.