Download the PHP package qianqchengithub/own-lumen-captcha without Composer
On this page you can find all versions of the php package qianqchengithub/own-lumen-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download qianqchengithub/own-lumen-captcha
More information about qianqchengithub/own-lumen-captcha
Files in qianqchengithub/own-lumen-captcha
Download qianqchengithub/own-lumen-captcha
More information about qianqchengithub/own-lumen-captcha
Files in qianqchengithub/own-lumen-captcha
Vendor qianqchengithub
Package own-lumen-captcha
Short Description Lumen qianqchengithub own-lumen-captcha
License MIT
Homepage https://github.com/qianqchengithub/own-lumen-captcha
Package own-lumen-captcha
Short Description Lumen qianqchengithub own-lumen-captcha
License MIT
Homepage https://github.com/qianqchengithub/own-lumen-captcha
Keywords lumenown-lumen-captcha
Please rate this library. Is it a good library?
Informations about the package own-lumen-captcha
Captcha for Lumen
本項目修改 Captcha for Laravel 5 和 lumen-captcha
Preview

Install
- 此 Package 必須開啟 Cache 才能使用,因為驗證碼與綁定驗證碼的 uuid 都是保存在 Cache 的。
How to use
在bootstrap/app.php中註冊Captcha Service Provider:
Set
在bootstrap/app.php中可以設定各種自定義類型的驗證碼屬性,更多詳細設定請查看 Captcha for Laravel 5
如果不配置設定檔,默認就是default,驗證碼有效時限為5分鐘。
Example
因為 Lumen 都是無狀態的 API,所以驗證碼圖片都會綁上一個 UUID,先獲得驗證碼的 UUID 跟圖片的 URL,驗證時再一併發送驗證碼與 UUID。
Generate
獲得驗證碼:
type就是在 config 中定義的 Type,如果不指定type,默認為default樣式,Response:
captchaUrl為驗證碼圖片的 URL,captchaUuid為綁定驗證碼圖片的uuid。
validate
在發送 Request 時將驗證碼與 UUID 一併送回 Server 端,在接收參數時做驗證即可:
Links
All versions of own-lumen-captcha with dependencies
PHP Build Version
Package Version
The package qianqchengithub/own-lumen-captcha contains the following files
Loading the files please wait ...