Download the PHP package codemonkeyluffy/laravel-geetest without Composer
On this page you can find all versions of the php package codemonkeyluffy/laravel-geetest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download codemonkeyluffy/laravel-geetest
More information about codemonkeyluffy/laravel-geetest
Files in codemonkeyluffy/laravel-geetest
Download codemonkeyluffy/laravel-geetest
More information about codemonkeyluffy/laravel-geetest
Files in codemonkeyluffy/laravel-geetest
Vendor codemonkeyluffy
Package laravel-geetest
Short Description 极验验证码v3.0 Laravel 5+ 扩展包
License MIT
Homepage https://github.com/CodeMonkeyLuffy/laravel-geetest
Package laravel-geetest
Short Description 极验验证码v3.0 Laravel 5+ 扩展包
License MIT
Homepage https://github.com/CodeMonkeyLuffy/laravel-geetest
Please rate this library. Is it a good library?
Informations about the package laravel-geetest
极验验证码v3.0 Laravel 5+ 扩展包
安装
- 安装包文件
配置
-
注册 ServiceProvider:
-
添加 Alias
-
创建配置文件、视图级资源文件:
.env
文件增加配置项GEETEST_ID
和GEETEST_KEY
配置项
配置项 | 说明 | 选项 | 默认值 |
---|---|---|---|
width | 按钮宽度 | 单位可以是 px, %, em, rem, pt | 300px |
lang | 语言,极验验证码免费版不支持多国语言 | zh-cn, en, zh-tw, ja, ko, th | zh-cn |
product | 验证码展示方式 | popup, float | popup |
geetest_id | 极验验证码ID | ||
geetest_key | 极验验证码KEY | ||
client_fail_alert | 客户端失败提示语 | 请完成验证码 | |
server_fail_alert | 服务端失败提示语 | 验证码校验失败 | |
loading | 验证码加载提示 | 验证码正在加载中 |
使用
- 前端使用
安装扩展后,在页面需要使用极验验证码的地方增加如下代码
- 服务端校验
在服务端使用 geetest
验证规则进行二次验证,示例代码:
参考图
参考项目
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-geetest with dependencies
PHP Build Version
Package Version
Requires
illuminate/routing Version
^5.5 || ^6.0
illuminate/support Version ^5.5 || ^6.0
php Version ~5.6|~7.0
illuminate/support Version ^5.5 || ^6.0
php Version ~5.6|~7.0
The package codemonkeyluffy/laravel-geetest contains the following files
Loading the files please wait ....