Property | Type | Description | |
---|---|---|---|
$secret | string | The recaptcha secret key. | |
$sitekey | string | The recaptcha sitekey key. |
Method | Description | |
---|---|---|
__construct ( string $secret, string $sitekey ) | NoCaptcha. | |
display ( $attributes = [], $lang = null ) : string | Render HTML captcha. | |
getJsLink ( $lang = null ) : string | Get recaptcha js link. | |
verifyRequest ( |
Verify no-captcha response by Symfony Request. | |
verifyResponse ( string $response, string $clientIp = null ) : boolean | Verify no-captcha response. |
Method | Description | |
---|---|---|
buildAttributes ( array $attributes ) : string | Build HTML attributes. | |
sendRequestVerify ( array $query = [] ) : array | Send verify request. |
public __construct ( string $secret, string $sitekey ) | ||
$secret | string | |
$sitekey | string |
protected buildAttributes ( array $attributes ) : string | ||
$attributes | array | |
return | string |
protected sendRequestVerify ( array $query = [] ) : array | ||
$query | array | |
return | array |
public verifyRequest ( |
||
$request | ||
return | boolean |