Download the PHP package vicens/captcha without Composer

On this page you can find all versions of the php package vicens/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 captcha

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads License

简介

一个简单的laravel5图形验证码扩展包

环境要求

  1. PHP >= 5.5
  2. php-gd
  3. illuminate\support ^5.1
  4. symfony/http-foundation >= 2.0

安装

使用composer安装扩展包

先通过composer安装扩展包到项目中

注册服务提供者和别名(Laravel5.5无需手动注册)

config/app.php 配置文件的providers数组中,注册服务提供者:

如果你使用Captcha别名的话,在aliases数组中注册别名:

配置

如果你想使用自己的配置,你可以执行以下命令发布配置文件config/captcha.php

基本用法

生成验证码图片实例

图片实例用法

直接返回Response对象:

直接输出给浏览器:

输出img标签:

返回base64编码:

返回base64Url地址:

返回图片二进制内容:

保存图片到服务器:

验证和测试

仅测试验证码的正确性:

检测验证码的正确性,并且从缓存中删除验证码:

使用中间件

在路由上使用:

在控制器中使用:

使用表单验证器

在控制器中使用:

Request中使用:

外观方法

返回验证码URL:

返回验证码img标签:

返回可点击切换验证码的img标签:

开源协议

MIT license.


All versions of captcha with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-gd Version *
symfony/http-foundation Version >=2.0
illuminate/support Version ^5.1
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 vicens/captcha contains the following files

Loading the files please wait ....