dskripchenko/yandex-smart-captcha

1.1.0 2024-08-20 15:06 UTC

This package is auto-updated.

Last update: 2024-10-20 15:30:51 UTC


README

$ php composer.phar require dskripchenko/yandex-smart-captcha "@dev"

or add

"dskripchenko/yandex-smart-captcha": "@dev"

to the require section of your composer.json file.

Usage

Validation with rules

return [
    'token' => 'yandex_smart_captcha'
];

Validation with value

use \Dskripchenko\YandexSmartCaptcha\Facades\YandexSmartCaptcha;

$token = '...token value';
$ip = 'ip address or null';
$throwable = true; 
$valid = YandexSmartCaptcha::validate($token, $ip, $throwable);