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

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

carpcai/swoft-captcha
=====================

A captcha for swoft framework

v1.1(7y ago)1109MITPHPPHP &gt;=7.0

Since Dec 3Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Swoft Captcha
=============

[](#swoft-captcha)

A Captcha Library that Imitation from thinkphp Captcha developed for swoft.

Usage
-----

[](#usage)

### Build a captcha in controller

[](#build-a-captcha-in-controller)

```
/**
 * @RequestMapping("/")
 */
public function index(Response $response): Response
{
    $captcha = new Captcha();

    return $captcha->entry($response);
}
```

### Sample image

[](#sample-image)

[![image](assets/demo/captcha_img.png)](assets/demo/captcha_img.png)

### Check if the captcha code is correct

[](#check-if-the-captcha-code-is-correct)

```
$captcha = new Captcha();

return $captcha->check($code);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

Total

2

Last Release

2716d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ca6416bb87733575af9a862a26a868cbc42ed594c80a6a7a5cab2356269059e?d=identicon)[carpcai](/maintainers/carpcai)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[woothee/woothee

Cross-language UserAgent classifier library, PHP implementation

108633.5k4](/packages/woothee-woothee)[jlzan1314/swoft-entity

swoft 2.0 entity creater

121.5k](/packages/jlzan1314-swoft-entity)

PHPackages © 2026

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