dskripchenko / yandex-smart-captcha
Yandex Smart Captcha
1.1.0
2024-08-20 15:06 UTC
Requires
- ext-json: *
- dskripchenko/php-array-helper: ^1.1
- guzzlehttp/guzzle: ^7.0
- laravel/framework: 6.*|7.*|8.*|9.*|10.*|11.*
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);