rafalmasiarek/php-hcaptcha
Composer 安装命令:
composer require rafalmasiarek/php-hcaptcha
包简介
PHP hCaptcha Component Library
README 文档
README
PHP hCaptcha Component Library
I accidentally discovered that Cloudflare stop using reCaptch in favor of another hCaptcha solution, which I started using this too with hope they collect less data about us than Google does
Cloudflare wrote an article about it : Moving from reCAPTCHA to hCaptcha
Basic usage on backend validator:
<?php $privToken = ''; $hcaptcha = new rafalmasiarek\hCaptcha($privToken); $verify = $hcaptcha->verify($_POST['h-captcha-response']) if( $verify['success'] == true) { echo "Legit request!"; }
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-19