Download the PHP package superpx-cn/laravel-captcha without Composer
On this page you can find all versions of the php package superpx-cn/laravel-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download superpx-cn/laravel-captcha
More information about superpx-cn/laravel-captcha
Files in superpx-cn/laravel-captcha
Package laravel-captcha
Short Description Laravel Captcha Package
License MIT
Homepage https://github.com/SuperPx-CN/laravel-captcha
Informations about the package laravel-captcha
Laravel 验证码
支持 Laravel 5/6/7/8/9
一个简单的Laravel 图形验证码服务提供商。
预览

- Laravel Captcha
- 预览
- Installation
- Usage
- Configuration
- Custom settings:
- Disable validation:
- Example Usage
- Session Mode:
- Stateless Mode:
- Return Image
- Return URL
- Return HTML
- To use different configurations
- Links
安装
使用 composer 安装
使用
To use the Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in config/app.php and register the Captcha Service Provider.
for Laravel 5.1+
Find the aliases key in config/app.php.
for Laravel 5.1+
Configuration
Custom settings:
To use your own settings, publish config.
config/captcha.php
Disable validation:
To disable the captcha validation use CAPTCHA_DISABLE environment variable. e.g. .env config:
Example Usage
Session Mode:
无状态模式:
你可以使用 助手函数 captcha() 来生成一个验证码
captcha() 方法将会返回一个数组,其中包含了:
- sensitive
- key: 验证码的标识
- img: 验证码的
base64编码
并且使用次方法检查验证码
Return Image
or
Return URL
or
Return HTML
or
To use different configurations
etc.
Based on Intervention Image
^_^
Links
All versions of laravel-captcha with dependencies
ext-gd Version *
illuminate/config Version ~5|^6|^7|^8|^9|^10
illuminate/filesystem Version ~5|^6|^7|^8|^9|^10
illuminate/support Version ~5|^6|^7|^8|^9|^10
illuminate/hashing Version ~5|^6|^7|^8|^9|^10
illuminate/session Version ~5|^6|^7|^8|^9|^10
intervention/image Version ~2.5