Skip to content

class ReCaptcha

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/g-recaptcha-src/ReCaptcha/ReCaptcha.php


ReCaptcha

Package

Default

Overview

Public Properties

No public properties found

Constants

VERSION() |

Public Methods

__construct() | verify() |

Constants

VERSION

VERSION = 'php_1.1.1' :

Version of this client library.

www/includes/g-recaptcha-src/ReCaptcha/ReCaptcha.php

Tags
  • const: string

Properties

requestMethod

Method used to communicate with service. Defaults to POST request.

private $requestMethod : \ReCaptcha\RequestMethod

Array

secret

Shared secret for the site.

private $secret : \ReCaptcha\type

Array: string

Methods

__construct()

Create a configured instance to use the reCAPTCHA service.

public __construct(string $secret, \ReCaptcha\RequestMethod $requestMethod = null) : mixed

verify()

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

public verify(string $response, string $remoteIp = null) : \ReCaptcha\Response


\ » Classes » ReCaptcha

Clone this wiki locally