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

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

zhensoft/think-captcha
======================

captcha package for thinkphp5，增加了 ob\_clean(); 自己修改，突然发现项目验证码出不来了，修改这里可以，所以单独做了一个包

05PHP

Since Sep 10Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#think-captcha)

thinkphp5 验证码类库

安装
--

[](#安装)

> composer require zhensoft/think-captcha

\##使用

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

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62fcff62634525b4b61c79eb10e9ec06c576f847dd9da7b1f023c2680792ca9d?d=identicon)[wl2304](/maintainers/wl2304)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[imanghafoori/laravel-middlewarize

Use laravel middlewares on any method calls in your app

1134.5k1](/packages/imanghafoori-laravel-middlewarize)

PHPackages © 2026

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