PHPackages                             iboxs/iboxs-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. [Security](/categories/security)
4. /
5. iboxs/iboxs-captcha

ActiveLibrary[Security](/categories/security)

iboxs/iboxs-captcha
===================

captcha package for iboxsphp

1.2.1(6mo ago)022Apache-2.0PHP

Since Sep 25Pushed 6mo agoCompare

[ Source](https://github.com/iboxs-frame/iboxs-captcha)[ Packagist](https://packagist.org/packages/iboxs/iboxs-captcha)[ RSS](/packages/iboxs-iboxs-captcha/feed)WikiDiscussions main Synced 3w ago

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

iboxs-captcha
=============

[](#iboxs-captcha)

iboxsphp 验证码类库

安装
--

[](#安装)

> composer require iboxs/iboxs-captcha

使用
--

[](#使用)

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

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

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

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

```

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

### 模板里输出验证码

[](#模板里输出验证码)

首先要在你应用的路由定义文件中，注册一个验证码路由规则。

```
\iboxs\facade\Route::get('captcha/[:id]', "\\iboxs\\captcha\\CaptchaController@index");

```

然后就可以在模板文件中使用

```
{:captcha_img()}

```

或者

```

```

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

### 控制器里验证

[](#控制器里验证)

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

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

```

或者手动验证

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

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance66

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

4

Last Release

203d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89eac34578919508993255948f343a12dd87fbf7f49fe17d147a6715f20da1bd?d=identicon)[itlattice](/maintainers/itlattice)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.0M137](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24772.0k35](/packages/paragonie-ecc)

PHPackages © 2026

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