Download the PHP package ixianming/image-captcha without Composer

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

Image Captcha

[TOC]

关于扩展包

安装

安装条件

无论是否在框架中使用,只要能使用 intervention/image 库的地方,均可安装使用本扩展包。

使用 Composer 安装

使用

配置文件

配置文件 image_captcha.php 存放在扩展包的 config 目录下。您可在配置文件中自定义图片验证码的设置。

如果你希望自定义验证码设置,且 composer update 时,自定义配置不受影响,请在自定义配置后及时备份,否则,当扩展包更新时,你的自定义配置就会被覆盖。

引用扩展包

创建验证码实例

如果你需要使用自定义配置,在配置文件中定义自定义配置后,创建实例时,传入自定义配置的名称既可。

获取验证码字符串

一个实例无论调用 code 方法几次,返回的验证码都是一致的,直至销毁此验证码。

获取验证码图片的 Base64 编码

获取验证码图片的编码数据

$imgType 参数表示图片格式,支持的图片格式与 intervention/image 库的 encode 方法支持的格式一致。默认返回 base64 编码数据。

销毁验证码

响应验证码图片

$imgType 参数表示图片格式,支持的图片格式与 intervention/image 库的 response 方法支持的格式一致。默认响应为 jpg 格式。

许可证

本扩展包基于 MIT license 开源。


All versions of image-captcha with dependencies

PHP Build Version
Package Version
Requires intervention/image Version >=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 ixianming/image-captcha contains the following files

Loading the files please wait ....