ella123/hyperf-captcha

hyperf captcha

Installs: 632

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/ella123/hyperf-captcha

3.12 2025-01-05 07:30 UTC

This package is auto-updated.

Last update: 2025-10-05 09:24:35 UTC


README

composer require ella123/hyperf-captcha

发布配置

php bin/hyperf.php vendor:publish ella123/hyperf-captcha

使用案例

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

验证码图片

字符串验证码

算术验证码