gie/captcha

在 https://github.com/dapphp/securimage 上可用的 Symfony 连接器 php securimage 包

安装: 181

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2023-01-18 15:54 UTC

This package is auto-updated.

Last update: 2024-09-18 19:23:42 UTC


README

此捆绑包由 Sirpa Gendarmerie 开发。它是一个连接到 https://github.com/dapphp/securimage phpcaptcha 项目的 Symfony 连接器。

GitHub license

安装

通过 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'