PHPackages                             micsay/yii2-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. micsay/yii2-captcha

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

micsay/yii2-captcha
===================

yii2-captcha for restful api by returning image's base64 extend yii/captcha/CaptchaAction

1.1(9y ago)42222[1 issues](https://github.com/micsay/yii2-captcha/issues) Apache License 2.0PHP

Since Nov 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/micsay/yii2-captcha)[ Packagist](https://packagist.org/packages/micsay/yii2-captcha)[ RSS](/packages/micsay-yii2-captcha/feed)WikiDiscussions master Synced 4w ago

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

yii2-captcha
============

[](#yii2-captcha)

\###installation `php composer.phar require micsay/yii2-captcha ~1.1`\###Usage

```
use micsay\captcha\CaptchaBuilder;
\\...

public function actionCaptcha(){
    $captcha = new CaptchaBuilder();
    $verifycode = $captcha->getPharse();
    $base64 = $captcha->base64();
    return $base64;
}

```

\###API

```
    $captcha = new CaptchaBuilder();
    $captcha->minLength = 4;
    $captcha->maxLength = 5;
    $captcha->foreColor = 0x00ff00;
    $captcha->width = 80;
    $captcha->height = 45;

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3521d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18065862?v=4)[micsay](/maintainers/micsay)[@micsay](https://github.com/micsay)

---

Top Contributors

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

---

Tags

base64captchayii2extensionrestful

### Embed Badge

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

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

###  Alternatives

[kdn/yii2-domain-validator

Domain name validator for Yii 2.

11124.6k1](/packages/kdn-yii2-domain-validator)[mdmsoft/yii2-captcha

Captcha with math equation

3911.2k](/packages/mdmsoft-yii2-captcha)[nepstor/yii2-datetime-compare-validator

Yii2 validator for compare datetime.

1285.1k1](/packages/nepstor-yii2-datetime-compare-validator)

PHPackages © 2026

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