zlh / geetest
The geetest for php
dev-master
2020-04-23 13:08 UTC
This package is auto-updated.
Last update: 2025-06-24 00:05:52 UTC
README
The geetest for php.
简单封装了下极验的行为验证库,参照官方的使用方法。安装
$ composer require zlh/geetest
使用示例
$captchaId = '1231231232131313213123'; //极验应用id
$privateKey = 'keykeykeykeykey'; //极验应用key
$userId = 1; //用户id
$ip = 112.12.52.52 //用户ip
$geetest = new Geetest();
$geetest->StartCaptchaServlet($captchaId,$privateKey,$ip,$userId); //AIP1 获取极验验证
$geetest->VerifyLoginServlet($captchaId,$privateKey,$ip,$userId); //AIP2 二次验证(后端验证)
Usage
TODO
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT