PHPackages                             johnson/yii2-pattern-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. johnson/yii2-pattern-captcha

ActiveYii2-extension

johnson/yii2-pattern-captcha
============================

Yii2 pattern captcha is nine dots based pattern Captcha to match with the numbers given in the box

v0.0.2(6y ago)118↓100%MITPHP

Since Jun 15Pushed 6y agoCompare

[ Source](https://github.com/arojohnson/yii2-pattern-captcha)[ Packagist](https://packagist.org/packages/johnson/yii2-pattern-captcha)[ RSS](/packages/johnson-yii2-pattern-captcha/feed)WikiDiscussions master Synced 2mo ago

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

Yii 2 - Pattern based captcha
=============================

[](#yii-2---pattern-based-captcha)

yii2-pattern-captcha is a extension for Yii Framework version above 2.0.0 and it's new version of captcha or puzzle to solve smaller problems in order to make the web application is accessed by human.

Steps to follow.

Install via composer

`composer require johnson/yii2-pattern-captcha`

### Then In your form

[](#then-in-your-form)

```

```

System will generate the dynamic numbers and the users need to draw pattern without releasing the mouse button!. Each single swipe or touch will be considered as pattern submission.

### Parameters

[](#parameters)

- **ajaxUrl** - the verification call will be made to this URL
- **name** - the input field that will be amended in the widget. Later you can verify if the value of the input given by you *has empty value* then the captcha failed or if *it has value as true* then captcha has been passed.

The selector may be like this ===&gt; input\[name="&lt; your-given-name &gt;'\]

### In your Controller

[](#in-your-controller)

```
if (Yii::$app->request->isPost) {
            $jp = new \Johnson\JayPattern();

            echo json_encode($jp->verifyCode());
            Yii::$app->end();
 }

```

Please do your comments about improvements and other stuffs.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

2520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02857c5e31d4e62e19db17aec2e912f4cdd8561f9440ec9890eb3a2457227df7?d=identicon)[arojohnson](/maintainers/arojohnson)

---

Tags

yii2extension

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k46](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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