PHPackages                             yulinzhihou/tp51\_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. yulinzhihou/tp51\_captcha

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

yulinzhihou/tp51\_captcha
=========================

captcha package for thinkphp5.1.\*

0151PHP

Since Oct 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yulinzhihou/tp51_captcha)[ Packagist](https://packagist.org/packages/yulinzhihou/tp51_captcha)[ RSS](/packages/yulinzhihou-tp51-captcha/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#think-captcha)

基于thinkphp5.1 验证码类库 修改成自用的接口图形验证。加入缓存，去掉SESSION

安装
--

[](#安装)

> composer require yulinzhihou/tp51\_captcha:dev-master

\##使用

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

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

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/aa9d261931ebe8d41906a6789e20cabd1efac0d8186c54b1d0a7109e461d0bdf?d=identicon)[yulinzhihou](/maintainers/yulinzhihou)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yulinzhihou-tp51-captcha/health.svg)

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

PHPackages © 2026

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