tgkw-adc/hyperf-captcha

hyperf captcha

Installs: 22

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/tgkw-adc/hyperf-captcha

1.0.1 2025-12-04 03:21 UTC

This package is auto-updated.

Last update: 2025-12-04 03:28:08 UTC


README

composer require tgkw-adc/hyperf-captcha

发布配置

php bin/hyperf.php vendor:publish tgkw-adc/hyperf-captcha

使用案例

# 创建图片验证码
$data = \TgkwAdc\HyperfCaptcha\captcha_create();
$key = $data['key']; # 验证码标识
$key = $data['img']; # 验证码图片
# 验证图片验证码
# $code: 用户输入的验证码
# $key: 创建验证码的时候返回的key
\TgkwAdc\HyperfCaptcha\captcha_verify($code,$key);