PHPackages                             huixian/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. huixian/think-captcha

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

huixian/think-captcha
=====================

captcha package for thinkphp5

v8.0.0(7y ago)0101Apache-2.0PHP

Since May 11Pushed 7y agoCompare

[ Source](https://github.com/Asuancaiyu/think-captcha)[ Packagist](https://packagist.org/packages/huixian/think-captcha)[ RSS](/packages/huixian-think-captcha/feed)WikiDiscussions 8.0 Synced 2mo ago

READMEChangelogDependencies (1)Versions (16)Used By (1)

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

[](#think-captcha)

thinkphp5.1 验证码类库

安装
--

[](#安装)

> composer require topthink/think-captcha

\##使用

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

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~66 days

Recently: every ~84 days

Total

15

Last Release

2716d ago

Major Versions

v1.0.7 → v2.02017-10-16

v2.0.2 → 3.0.x-dev2018-11-07

3.0.x-dev → v8.0.02018-12-01

### Community

Maintainers

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

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (10 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (7 commits)")[![Asuancaiyu](https://avatars.githubusercontent.com/u/24242301?v=4)](https://github.com/Asuancaiyu "Asuancaiyu (4 commits)")[![zhaishuaigan](https://avatars.githubusercontent.com/u/6310602?v=4)](https://github.com/zhaishuaigan "zhaishuaigan (1 commits)")

### Embed Badge

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

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

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