Download the PHP package dianthink/captcha without Composer

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

Captcha for Lumen

基于 Captcha for Laravel 5 修改而来的

A simple Laravel 5 service provider for including the Captcha for Laravel 5.

update

支持了lumen 6x

源于

Captcha for Laravel 5 作者很久没有更新了,同时 Captcha 在 Lumen 有很多错误

由此我基于原 Captcha 包进行了一些错误修复来集成 Lumen 。 同时删除了一些个人觉得太过冗余的东西,让使用更加方便和自由

安装

composer require youngyezi/captcha

使用

新版的包已经删除了 session 支持,完全交给业务自由选择存储方式

个人觉得这样更方便来解耦业务,尤其 Lumen 大多时候用来做 Api 开发,并不需要开启 Session 服务

注册服务 bootstrap\app.php

$app->register(Youngyezi\Captcha\CaptchaServiceProvider::class);

// 添加别名
$app->alias('captcha', 'Youngyezi\Captcha\CaptchaServiceProvider');

配置文件

复制 config/captcha.php 至 项目 config 文件下

For Example

验证码生成

//  创建验证码
//  配置文件 key($config)
//  返回 验证码 captcha 和相关 key
$data = app('captcha')->create();

//  自定义储存 key (如 redis ,session 等)

....

//  返回验证码图片 img

验证码校验

// 通过 code 和 key 来校验
$captcha = $request->input('captcha');

// 获取自定义存储的 key 值
$key = { ... };

if(app('captcha')->check($captcha, $key) === false) {
       //校验失败
}

All versions of captcha with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.1
ext-gd Version *
illuminate/config Version ^v5.0.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 dianthink/captcha contains the following files

Loading the files please wait ...