2017 © Pedro Peláez
 

library captcha-lumen

captcha for lumen

image

defender/captcha-lumen

captcha for lumen

  • Monday, May 28, 2018
  • by guchangsheng
  • Repository
  • 0 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1100 % Grown

The README.md

Captcha for Lumen 兼容支持lumen 5.5, (*1)

基于 Captcha for Laravel 5lumen-captcha 的修正, (*2)

启用cache###env配置如下

CACHE_DRIVER=redis REDIS_HOST=127.0.0.1 REDIS_PORT= REDIS_PASSWORD=, (*3)

config配置文件

*拷贝config目录下的captcha.php image.php到那项目config目录, (*4)

注册

bootstrap目录下的app.php添加如下

$app->configure('image'); $app->configure('captcha'); $app->register(Yangbx\CaptchaLumen\CaptchaServiceProvider::class);, (*5)

Preview

Preview, (*6)

创建路由

/************/ $api->group(['namespace' => 'Yangbx\CaptchaLumen'],function($api){ //验证码 $api->get('Info/{type}', ['as' => 'captcha', 'uses' => 'LumenCaptchaController@getCaptchaInfo']); $api->get('captcha/{type}/{captchaId}', ['uses' => 'LumenCaptchaController@getCaptcha']);, (*7)

});

The Versions

28/05 2018

dev-master

9999999-dev

captcha for lumen

  Sources   Download

MIT

The Requires

 

by defender

captcha lumen captcha captcha for api