class NaverCaptcha implements CaptchaInterface

Class NaverCaptcha

Properties

protected string $clientId Api client id
protected string $clientSecret Api client secret
protected Request $request Http Request instance
protected FrontendHandler $frontend FrontendHandler instance
protected Factory $view View Factory instance
protected int $timeout Api request timeout
protected string $urlPrefix Request url prefix
protected array $errors Error messages

Methods

__construct(string $clientId, string $clientSecret, Request $request, FrontendHandler $frontend, Factory $view, int $timeout)

NaverCaptcha constructor.

bool
verify()

Verify captcha

mixed
available()

Determine if captcha is available

array
errors()

Message of fails

string
render()

For UI object display

string
issue()

Issued the captcha key

string
getInputName()

Captcha input name

string
getImgSrc(string $key)

Returns image source by key

Client
createClient()

Create client for api request

Details

at line 101
__construct(string $clientId, string $clientSecret, Request $request, FrontendHandler $frontend, Factory $view, int $timeout)

NaverCaptcha constructor.

Parameters

string $clientId Api client id
string $clientSecret Api client secret
Request $request Http Request instance
FrontendHandler $frontend FrontendHandler instance
Factory $view View Factory instance
int $timeout Api request timeout

at line 122
bool verify()

Verify captcha

Return Value

bool

at line 154
mixed available()

Determine if captcha is available

Return Value

mixed

at line 164
array errors()

Message of fails

Return Value

array

at line 174
string render()

For UI object display

Return Value

string

at line 193
string issue()

Issued the captcha key

Return Value

string

Exceptions

WrongResponseException

at line 217
string getInputName()

Captcha input name

Return Value

string

at line 228
string getImgSrc(string $key)

Returns image source by key

Parameters

string $key captcha key

Return Value

string

at line 238
protected Client createClient()

Create client for api request

Return Value

Client