PHPackages                             shirne/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. shirne/captcha

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

shirne/captcha
==============

captcha package for thinkphp5

1.1.0(5y ago)0503Apache-2.0PHP

Since Nov 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shirne/captcha)[ Packagist](https://packagist.org/packages/shirne/captcha)[ RSS](/packages/shirne-captcha/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

shirne-captcha
==============

[](#shirne-captcha)

thinkphp5.1 验证码类库
基于think-captcha修改, 支持非session模式

安装
--

[](#安装)

> composer require shirne/captcha

\##使用

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

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

1826d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03173760b0f51c17a6e94f057c57d9609cbedeb26001be12aca8a2f139721dae?d=identicon)[shirne](/maintainers/shirne)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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