PHPackages                             xuezhitech/tp6-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. xuezhitech/tp6-captcha

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

xuezhitech/tp6-captcha
======================

captcha package for thinkphp6

v1.1(3y ago)013Apache-2.0PHP

Since Feb 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jinxuezhi2018/tp6-captcha)[ Packagist](https://packagist.org/packages/xuezhitech/tp6-captcha)[ RSS](/packages/xuezhitech-tp6-captcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

think-captcha
=============

[](#think-captcha)

thinkphp6 验证码类库

安装
--

[](#安装)

> composer require xuezhitech/tp6-captcha

使用
--

[](#使用)

### 在控制器中输出验证码

[](#在控制器中输出验证码)

在控制器的操作方法中使用

声明

```
use xuezhitech/tp6-captcha;

```

使用

```
public function captcha()
{
	$config = [
        'useCurve'=>false,
        'codeSet'=>'123456789',
    ];
    $captcha = new Captcha($config);
    return $captcha->create();
}

```

然后注册对应的路由来输出验证码

### 控制器里验证

[](#控制器里验证)

验证

```
//验证码是否正确
$captcha = new Captcha();
if ( !$captcha->check($key,$code) ){
    return json('CAPTCHA_CODE_ERROR');
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

2

Last Release

1193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0a08f0378349cd6f07eb95f37ce0343bc459c420f150eb5c56d413b6e7919b9?d=identicon)[jinxuezhi2018](/maintainers/jinxuezhi2018)

### Embed Badge

![Health badge](/badges/xuezhitech-tp6-captcha/health.svg)

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k65](/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)
