PHPackages                             haohetao/yii2-rest-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. haohetao/yii2-rest-api-captcha

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

haohetao/yii2-rest-api-captcha
==============================

The captcha image generator for restful api

2.1.4(7y ago)0710↓100%GPL-2.0+PHPPHP &gt;=7.1

Since Sep 5Pushed 5y agoCompare

[ Source](https://github.com/haohetao/yii2-rest-api-captcha)[ Packagist](https://packagist.org/packages/haohetao/yii2-rest-api-captcha)[ RSS](/packages/haohetao-yii2-rest-api-captcha/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

yii2-rest-api-captcha
=====================

[](#yii2-rest-api-captcha)

Simple captcha image generator for restful api 22

Installation
------------

[](#installation)

Recommended installation via [composer](http://getcomposer.org/download/):

```
composer require haohetao/yii2-rest-api-captcha

```

Usage
-----

[](#usage)

Generate captcha code (image/png;base64):

```
    public function actions()
    {
        return [
            'captcha' => [
                'class' => 'haohetao\captcha\CaptchaAction',
                'maxLength' => 4,
                'minLength' => 4
            ]
        ];
    }
```

use in curl(for test):

```
curl http://localhost/site/captcha
```

Verify captcha code:

```
    public function rules()
    {
        return [
            [
                'code', \haohetao\captcha\CaptchaValidator::class
            ]
        ];
    }
```

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

6

Last Release

2752d ago

Major Versions

1.0.0 → 2.12018-09-05

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

2.1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/49ee9003109866ee01a052ac1c956a4302217912349bac7c43c297647b3694f3?d=identicon)[haohetao](/maintainers/haohetao)

---

Top Contributors

[![haohetao](https://avatars.githubusercontent.com/u/4592571?v=4)](https://github.com/haohetao "haohetao (10 commits)")[![riskivy](https://avatars.githubusercontent.com/u/30256536?v=4)](https://github.com/riskivy "riskivy (7 commits)")[![apprena](https://avatars.githubusercontent.com/u/27483132?v=4)](https://github.com/apprena "apprena (4 commits)")

### Embed Badge

![Health badge](/badges/haohetao-yii2-rest-api-captcha/health.svg)

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

###  Alternatives

[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78253.9k5](/packages/brussens-yii2-maintenance-mode)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1356.4k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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