using jwt for recaptcha in php
$secret;
$re = new ReCaptcha($secret);
$hash = $re->hash();
echo $hash["token"]; //token sent to user, use for verify later
echo $hash["image"]; //recaptcha image
$re = new ReCaptcha($secret);
$code;//get from user
$token;//get from user sent before
if($re->verify($code,$token)){
//correct code
}else{
//incorrect code
}