PHPackages                             iwindy/tp-api-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. iwindy/tp-api-captcha

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

iwindy/tp-api-captcha
=====================

1.0.0(3y ago)017MITPHP

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/iwindy/tp-api-captcha)[ Packagist](https://packagist.org/packages/iwindy/tp-api-captcha)[ RSS](/packages/iwindy-tp-api-captcha/feed)WikiDiscussions maste Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

tp-api-captcha
==============

[](#tp-api-captcha)

根据topthink/think-captcha修改而来，适合thinkphp6的api 验证码类库

安装
--

[](#安装)

> composer require iwindy/tp-api-captcha

使用
--

[](#使用)

### 在控制器中输出验证码

[](#在控制器中输出验证码)

在控制器的操作方法中使用

```
public function api_captcha($id = '')
{
	return captcha($id);
}

```

然后注册对应的路由来输出验证码

### 控制器里验证

[](#控制器里验证)

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

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

1194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d22fc922d92aea530584d6632ae37888d3b0611e012dc218522175d0987c766?d=identicon)[iwindy](/maintainers/iwindy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/iwindy-tp-api-captcha/health.svg)

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

###  Alternatives

[in2code/ipandlanguageredirect

Redirects TYPO3 visitors automatic or with a suggestlink to another language and/or root page.

1738.0k](/packages/in2code-ipandlanguageredirect)

PHPackages © 2026

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