ReCaptcha\ReCaptcha
reCAPTCHA client.
Synopsis
class ReCaptcha
{
- // constants
- const VERSION = 'php_1.1.2';
- // members
- private $secret;
- private RequestMethod $requestMethod;
- // methods
- public void __construct()
- public Response verify()
Constants
Name | Value |
---|---|
VERSION | 'php_1.1.2' |
Members
private
- $requestMethod
—
ReCaptcha\RequestMethod
Method used to communicate with service. Defaults to POST request. - $secret
—
string
Shared secret for the site.
Methods
public
- __construct() — Create a configured instance to use the reCAPTCHA service.
- verify() — Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.