PHPackages                             jolalau/think6-captcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jolalau/think6-captcha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jolalau/think6-captcha
======================

TP6前后端分离验证码

1.0.4(4y ago)0503Apache-2.0PHP

Since Aug 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jolalau/think6-captcha)[ Packagist](https://packagist.org/packages/jolalau/think6-captcha)[ RSS](/packages/jolalau-think6-captcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

think6-captcha
==============

[](#think6-captcha)

生成图片或字符验证码

安装
--

[](#安装)

> composer require jolalau/think6-captcha

前后端分离中使用
--------

[](#前后端分离中使用)

###### 生成验证码

[](#生成验证码)

```

use jolalau\captcha\facade\CaptchaApi;

$data = CaptchaApi::create();

其中$data 返回为：
{
    "base64": "base64格式",
    "key": "验证码的KEY",
    "md5": "e10adc3949ba59abbe56e057f20f883e",
	"code": "9515"
}

base64: 图片base64地址
key: 前端提交验证
md5: 验证码端md5值
code: 验证码值

```

###### 验证验证码

[](#验证验证码)

```

if ( ! CaptchaApi::check($code,$key)) {
	//验证码错误
}

前端表单提交：code、key

```

来源
--

[](#来源)

```
基于think-captcha进行扩展，可继续使用原版 captcha.php 验证码配置文件

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

1725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cd71aec7b31e14f0c3165c83952ad5f5d910292b0d5895e31686f84d0785f45?d=identicon)[jolalau](/maintainers/jolalau)

---

Top Contributors

[![jolalau](https://avatars.githubusercontent.com/u/89350183?v=4)](https://github.com/jolalau "jolalau (9 commits)")

### Embed Badge

![Health badge](/badges/jolalau-think6-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/jolalau-think6-captcha/health.svg)](https://phpackages.com/packages/jolalau-think6-captcha)
```

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
