elliot9 / captcha
此软件包最新版本(1.0.0)没有可用的许可信息。
1.0.0
2019-03-26 01:14 UTC
Requires
- php: >=5.4
- ext-gd: *
- illuminate/config: ~5.0
- illuminate/filesystem: ~5.0
- illuminate/hashing: ~5.0
- illuminate/support: ~5.0
- intervention/image: ~2.2
This package is auto-updated.
Last update: 2024-09-26 14:14:36 UTC
README
从mews分支用于TTS
预览
下载
使用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