dev-master
9999999-devcaptcha for lumen
MIT
The Requires
- php >=5.4
- ext-gd *
- illuminate/config ~5.0
- illuminate/filesystem ~5.0
- illuminate/support ~5.0
- illuminate/hashing ~5.0
- intervention/image ~2.2
by defender
captcha lumen captcha captcha for api
Wallogit.com
2017 © Pedro Peláez
captcha for lumen
Captcha for Lumen 兼容支持lumen 5.5, (*1)
基于 Captcha for Laravel 5 和 lumen-captcha 的修正, (*2)
CACHE_DRIVER=redis REDIS_HOST=127.0.0.1 REDIS_PORT= REDIS_PASSWORD=, (*3)
*拷贝config目录下的captcha.php image.php到那项目config目录, (*4)
$app->configure('image'); $app->configure('captcha'); $app->register(Yangbx\CaptchaLumen\CaptchaServiceProvider::class);, (*5)
, (*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)
});
captcha for lumen
MIT
captcha lumen captcha captcha for api