gie / captcha
在 https://github.com/dapphp/securimage 上可用的 Symfony 连接器 php securimage 包
dev-master
2023-01-18 15:54 UTC
Requires
- php: >=7.4
- dapphp/securimage: ^4.0
This package is auto-updated.
Last update: 2024-09-18 19:23:42 UTC
README
此捆绑包由 Sirpa Gendarmerie 开发。它是一个连接到 https://github.com/dapphp/securimage 项目的 Symfony 连接器。
安装
通过 composer 安装
composer require gie/captcha
在 bundles.php 中添加
Gie\SecureImage\GieSecureImageBundle::class => ['all' => true],
在 routes.yaml 中添加
_gieSecureImageBundle: resource: '@GieSecureImageBundle/Resources/config/routes.yaml'
配置
在 config/packages 中添加 gie_secure_image.yaml 文件
有多个参数可用。例如,设置验证码颜色
gie_secure_image: text_color: '#355689' line_color: '#707070' noise_color: '#707070' image_bg_color: '#ffffff'