krowinski/one-click-captcha
最新稳定版本:3.0
Composer 安装命令:
composer require krowinski/one-click-captcha
包简介
Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.
README 文档
README
This lib can perform CAPTCHA validation based on user clicks on circles.
It renders an image with several circles on random positions. Only one circle appears cut.
The class performs CAPTCHA validation by checking the position where the user clicks on the image to verify if it is inside the circle that is cut.
The generated image is served in PNG format. The values of the rendered circles are stored in session variables for subsequent validation.
The size and colors of the image and the circles are configurable parameters.
1. install using composer
composer require krowinski/one-click-captcha
2. example
https://github.com/krowinski/one-click-captcha/blob/master/example/example.php
3. docker test
docker build -t captcha .
docker run -p 8090:80 captcha
统计信息
- 总下载量: 1.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-07