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

ActiveLibrary

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 today

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

2714d 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

[swoft/swoft

Modern High performance AOP and Coroutine PHP Framework

5.6k34.4k](/packages/swoft-swoft)[swoft/db

swoft database component

24167.4k11](/packages/swoft-db)[swoft/redis

swoft redis component

12168.4k16](/packages/swoft-redis)[swoft/http-server

swoft http server component

11174.5k8](/packages/swoft-http-server)[swoft/http-client

HTTP Client Component for Swoft

1139.3k4](/packages/swoft-http-client)[swoft/auth

Auth component for swoft

127.2k1](/packages/swoft-auth)

PHPackages © 2026

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