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

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

zhangshibiao/captcha
====================

验证码

37PHP

Since Nov 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zhangxiaobiao/captcha)[ Packagist](https://packagist.org/packages/zhangshibiao/captcha)[ RSS](/packages/zhangshibiao-captcha/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

一个生成验证码类

支持composer安装

`composer require zhangshibiao/captcha`

用法

`use Zhangshibiao\Captcha;`

`$captcha = new Captcha();`

`输出验证码图片`

`$captcha->generateCode();`

`获取验证码字符`

`$captcha->getCode();`

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20057289?v=4)[张世彪](/maintainers/zhangxiaobiao)[@zhangxiaobiao](https://github.com/zhangxiaobiao)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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