Download the PHP package aishan/lumen-captcha without Composer

On this page you can find all versions of the php package aishan/lumen-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lumen-captcha

Captcha for Lumen

本项目修改自 Captcha for Laravel 5.

预览效果图

Preview

安装

or

使用

bootstrap/app.php中注册Captcha Service Provider:

配置

bootstrap/app.php中可以配置各种自定义类型的验证码属性: 更多详细配置请查看https://github.com/mewebstudio/captcha

当然,也可以不配置,默认就是default的样式,验证码有效时间5分钟。

使用范例

因为lumen一般写的都是无状态的API,所以此处验证码的图片必须绑定一个uuid,获取图片验证码时,先获取验证码url地址和uuid,然后在验证时,提交验证码和uuid一并验证码。

生成验证码

获取验证码信息:

其中type就是在配置文件中定义的验证码类型(如果你定义了的话),当然也可以不指定type,则默认为default,返回信息:

captchaUrl为验证码图片地址,captchaUuid为绑定验证码图片的uuid。

验证验证码

在请求中将验证码的值和uuid随着你的post请求一起发到服务端,在接收参数的地方做验证即可:

Links


All versions of lumen-captcha with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-gd Version *
illuminate/config Version ~5.0
illuminate/filesystem Version ~5.0
illuminate/support Version ~5.0
illuminate/hashing Version ~5.0
intervention/image Version ~2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aishan/lumen-captcha contains the following files

Loading the files please wait ....