PHPackages                             mrssoft/yii2-form-widgets - 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. mrssoft/yii2-form-widgets

ActiveYii2-extension

mrssoft/yii2-form-widgets
=========================

Yii2 widgets for form fields

2.1.7(2y ago)0137MITPHPPHP &gt;=8.0

Since May 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mrs2000/yii2-form-widgets)[ Packagist](https://packagist.org/packages/mrssoft/yii2-form-widgets)[ RSS](/packages/mrssoft-yii2-form-widgets/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

Yii2 Form Widgets
=================

[](#yii2-form-widgets)

[![Latest Stable Version](https://camo.githubusercontent.com/f63c7c8aa6300fc87966a20a746b67f392231d72d0a7fe54837d6871359314db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7273736f66742f796969322d666f726d2d776964676574732e737667)](https://packagist.org/packages/mrssoft/yii2-form-widgets)[![PHP](https://camo.githubusercontent.com/d737296b4d3a6eb262b861d36975f9e2b70b913bf4f006fd2d324eb51d1e78e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d7273736f66742f796969322d666f726d2d776964676574732e737667)](https://camo.githubusercontent.com/d737296b4d3a6eb262b861d36975f9e2b70b913bf4f006fd2d324eb51d1e78e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d7273736f66742f796969322d666f726d2d776964676574732e737667)[![Total Downloads](https://camo.githubusercontent.com/3bc8841d8f269c0d28967735eeeef870d24c71f4768411404f86a82672aaec66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7273736f66742f796969322d666f726d2d776964676574732e737667)](https://camo.githubusercontent.com/3bc8841d8f269c0d28967735eeeef870d24c71f4768411404f86a82672aaec66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7273736f66742f796969322d666f726d2d776964676574732e737667)

Yii2 widgets for form fields

Input widgets:

- PasswordRevealWidget
- PhoneInputWidget
- MaskedPhoneInputWidget

Validators:

- PhoneValidator

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mrssofy/yii2-form-widgets "~2.0"

```

or add

```
"mrssofy/yii2-form-widgets": "~2.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
$form->field($order, 'name')->widget(NameInputWidget::class);
$form->field($order, 'phone')->widget(PhoneInputWidget::class);
$form->field($order, 'password')->widget(PasswordRevealWidget::class);
```

```
public function rules()
{
    return [
        [['phone'], 'required'],
        [['phone'], PhoneValidator::class, 'returnLenght' => 10],
        ...
    ];
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity75

Established project with proven stability

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

Recently: every ~161 days

Total

12

Last Release

915d ago

Major Versions

1.0.2 → 2.0.02019-10-29

PHP version history (3 changes)2.0.0PHP &gt;=7.2.0

2.1.3PHP &gt;=7.4.0 | 8.\*

2.1.6PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e69f6780ee8c8e5b2c10af66e1232ac3925766c6f2f83db1820f2ff9a590a62?d=identicon)[mrs2000](/maintainers/mrs2000)

---

Tags

yii2extensionwidget

### Embed Badge

![Health badge](/badges/mrssoft-yii2-form-widgets/health.svg)

```
[![Health](https://phpackages.com/badges/mrssoft-yii2-form-widgets/health.svg)](https://phpackages.com/packages/mrssoft-yii2-form-widgets)
```

###  Alternatives

[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)
