elliot9/captcha

此软件包最新版本(1.0.0)没有可用的许可信息。

安装: 2

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:软件包

1.0.0 2019-03-26 01:14 UTC

This package is auto-updated.

Last update: 2024-09-26 14:14:36 UTC


README

从mews分支用于TTS

预览

img

下载

使用composer安装此软件包

composer require elliot9/captcha

用法

在config/app.php中找到providers键并注册Captcha服务提供者。

'providers' => [
    // ...
    Elliot9\Captcha\CaptchaServiceProvider::class,
]

在config/app.php中找到aliases键。

'aliases' => [
    // ...
    'Captcha' => Elliot9\Captcha\Facades\Captcha::class,
]

配置

php artisan vendor:publish
config/captcha.php
'default'   => [
    'length'    => 4,
    'width'     => 120,
    'height'    => 36,
    'quality'   => 90,
    'math'      => false,
    'account'   =>'', //TTS Account
    'password'  =>'', // TTS password
],

示例用法

{{captcha_audio_src()}} => return Audio Captcha src
{{captcha}} => Captcha img