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

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

bain2018/think-captcha
======================

captcha package for thinkphp5

1.0.3(3y ago)0317↓100%Apache-2.0PHP

Since Mar 22Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

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

[](#think-captcha)

thinkphp5 验证码类库

安装
--

[](#安装)

> composer require topthink/think-captcha

\##使用

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

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

1240d ago

### Community

Maintainers

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

---

Top Contributors

[![bain2018](https://avatars.githubusercontent.com/u/4859178?v=4)](https://github.com/bain2018 "bain2018 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

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