2017 © Pedro Peláez
 

project geetest

geetest for laravel

image

laraveler/geetest

geetest for laravel

  • Monday, November 14, 2016
  • by 1061120731
  • Repository
  • 1 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

说明

官方给出的sdk调用方法过于复杂浪费开发时间,我就封装了一个调用非常简单的一个geetest包可以减少开发人员不少时间, (*1)


安装

  1. composer require laraveler/geetest
  2. 在config/app.php providers 数组里加入 geetest\provider\geetestServiceProvider::class
  3. 执行 php artisan vendor:publish

调用

 use geetest\Facades\geetest;

return geetest::init($request,function(){Auth::attempt([....])},function(){....});

必须注册路由方法为any, (*2)

初始化时需要传入request对象,第二个参数为验证成功后需要做的动作,第三个参数为验证失败需要的动作, (*3)

The Versions

14/11 2016

dev-master

9999999-dev

geetest for laravel

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by jj

laravel geetest

14/06 2016

v1.0

1.0.0.0

geetest for laravel

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by jj

laravel geetest