PHPackages                             wen-gg/think-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. wen-gg/think-captcha

ActiveLibrary

wen-gg/think-captcha
====================

captcha package for thinkphp5

v1.0.8(3y ago)07Apache-2.0PHP

Since Oct 13Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

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

[](#think-captcha)

thinkphp5 验证码类库

说三遍： 拷贝v1.0.8，把Session改为了Cache，与原版只能选择一个 拷贝v1.0.8，把Session改为了Cache，与原版只能选择一个 拷贝v1.0.8，把Session改为了Cache，与原版只能选择一个

安装
--

[](#安装)

> composer require wen-gg/think-captcha

\##使用

\###模板里输出验证码

```
{:captcha_img()}

```

或者

```

```

> 上面两种的最终效果是一样的

### 控制器里验证

[](#控制器里验证)

使用TP5的内置验证功能即可

```
$this->validate($data,[
    'captcha|验证码'=>'require|captcha'
]);

```

或者手动验证

```
if(!captcha_check($captcha)){
 //验证失败
};

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2995431c6adf71254a5ab86c5314d1ffb4a0387f14451a551194ddeebf42ee60?d=identicon)[zwj1206\_hi](/maintainers/zwj1206_hi)

---

Top Contributors

[![wen-gg](https://avatars.githubusercontent.com/u/17865026?v=4)](https://github.com/wen-gg "wen-gg (1 commits)")

### Embed Badge

![Health badge](/badges/wen-gg-think-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/wen-gg-think-captcha/health.svg)](https://phpackages.com/packages/wen-gg-think-captcha)
```

###  Alternatives

[zoujingli/think-library

Library for ThinkAdmin

8569.8k17](/packages/zoujingli-think-library)[topthink/think-testing

4392.2k8](/packages/topthink-think-testing)

PHPackages © 2026

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