Overview

Namespaces

  • MatthiasMullie
    • Minify
      • Exceptions
    • PathConverter
  • None
  • ReCaptcha
    • RequestMethod
  • TOTP

Classes

  • ReCaptcha
  • RequestParameters
  • Response

Interfaces

  • RequestMethod
  • Overview
  • Namespace
  • Class

Class ReCaptcha

reCAPTCHA client.

Namespace: ReCaptcha
Located at Sources/ReCaptcha/ReCaptcha.php
Methods summary
public
# __construct( string $secret, ReCaptcha\RequestMethod $requestMethod = null )

Create a configured instance to use the reCAPTCHA service.

Create a configured instance to use the reCAPTCHA service.

Parameters

$secret
shared secret between site and reCAPTCHA server.
$requestMethod
method used to send the request. Defaults to POST.
public ReCaptcha\Response
# verify( string $response, string $remoteIp = null )

Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.

Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.

Parameters

$response
The value of 'g-recaptcha-response' in the submitted form.
$remoteIp
The end user's IP address.

Returns

ReCaptcha\Response
Response from the service.
Constants summary
string VERSION

Version of this client library.

Version of this client library.

Const

string
# 'php_1.1.2'
API documentation generated by ApiGen