Download the PHP package rlofls/drag-captcha without Composer
On this page you can find all versions of the php package rlofls/drag-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rlofls/drag-captcha
More information about rlofls/drag-captcha
Files in rlofls/drag-captcha
Download rlofls/drag-captcha
More information about rlofls/drag-captcha
Files in rlofls/drag-captcha
Vendor rlofls
Package drag-captcha
Short Description Drag-and-drop graphics verification, small and easy to use
License MIT
Package drag-captcha
Short Description Drag-and-drop graphics verification, small and easy to use
License MIT
Please rate this library. Is it a good library?
Informations about the package drag-captcha
Drag-Captcha
拖拽图形验证,简单易用, 只需要绑定按钮即可使用。 english\
composer require rlofls/drag-captcha
- 功能介绍
- 自定义背景
- 开启干扰混淆
- 运行示例
- 实践
- api
功能介绍
自定义背景
先设置 Resources::$customBg
数组值,一定要是 png 图片, 存放的是图片路径。 eg:
添加干扰混淆
能够使目标不那么明显,会随机对目标进行扩展/剪切,在调用 generate()
方法时候, 传入true
值即可。 eg: $drag->generate(true);
-
expand:
-
cut
运行示例
- 切换到此目录下
composer install
php -S 127.0.0.1:8087
- 浏览器访问
http://127.0.0.1:8087
实践
参考 index.php
index.html
\
复制 dragCaptcha.css
dragCaptcha.js
到自己项目应用 \
参考 html
api
-
Rlofls\DragCaptcha\Drag
generate
生成渲染数据dst, data
verify
验证匹配结果
-
服务器api 要求, Content-Type: application/json
-
/dragData
---[GET]---获取验证码数据\ 响应数据格式: /dragVerify
---[POST]---进行验证码验证\ 请求参数
响应数据格式:
-
todo
- 欢迎提交
issuse
All versions of drag-captcha with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-gd Version *
ext-gd Version *
The package rlofls/drag-captcha contains the following files
Loading the files please wait ....