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

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

tanchengjin/captcha
===================

php captcha

1.1.0(5y ago)2131MITPHP

Since Mar 21Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

README
======

[](#readme)

PHP Captcha

Demo
====

[](#demo)

[![captcha](demo.png)](demo.png)

安装
==

[](#安装)

#### composer

[](#composer)

`composer require tanchengjin/captcha`

#### github

[](#github)

`git clone git@github.com:tanchengjin/captcha.git`

使用 use
======

[](#使用-use)

#### 直接显示验证码

[](#直接显示验证码)

```
echo new Captcha($w,$h,$num)

```

#### 链式方法

[](#链式方法)

###### 自定义要生成的字符串，如生成纯数字

[](#自定义要生成的字符串如生成纯数字)

```
$captcha=new Captcha();
echo $captcha->setText('0123456789')->display();

```

#### 校验

[](#校验)

```
Captcha::verify('');

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/427ce3bcd37141f3e0dc014a15296fbe72f1ce86973d0e74871ebd3974feeb32?d=identicon)[349508017](/maintainers/349508017)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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