PHPackages                             wdmg/yii2-forms - 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. wdmg/yii2-forms

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

wdmg/yii2-forms
===============

Creation and management of user forms

1.2.0(2y ago)452921MITPHP

Since Mar 8Pushed 2y ago4 watchersCompare

[ Source](https://github.com/wdmg/yii2-forms)[ Packagist](https://packagist.org/packages/wdmg/yii2-forms)[ Docs](https://github.com/wdmg/yii2-forms)[ RSS](/packages/wdmg-yii2-forms/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (19)Used By (1)

[![Yii2](https://camo.githubusercontent.com/3f29058a9886ae3e9efc09df82d551051f8ea6c8da1176d9e8ca8a64be6f9b40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e34302d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/68ec23eb46769fb5b883fb7f77b1d37b9a6b3d7251b3eb2b2d9de141d75cd0d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d666f726d732e737667)](https://packagist.org/packages/wdmg/yii2-forms)[![Packagist Version](https://camo.githubusercontent.com/0161bd7836938ef9a0039bb44c12277e83479ef8f828673ebd9c08017a85eca4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d666f726d732e737667)](https://packagist.org/packages/wdmg/yii2-forms)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/879cfeea62b6641b5f36e3447d2ee39cb12102022666d50a5e088bb2ec45c7cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d666f726d732e737667)](https://github.com/wdmg/yii2-forms/blob/master/LICENSE)

[![Yii2 Composite Forms](./docs/images/yii2-forms.png)](./docs/images/yii2-forms.png)

Yii2 Forms
==========

[](#yii2-forms)

Module for creating and administering composite forms for Yii2. It also records and manages the results of filling out forms on the site. It has its own component for building and displaying forms in the frontend. Supports multilingual fields and descriptions.

This module is an integral part of the [Butterfly.СMS](https://butterflycms.com/) content management system, but can also be used as an standalone extension.

Copyrights (c) 2019-2021 [W.D.M.Group, Ukraine](https://wdmg.com.ua/)

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.40 and newest
- [Yii2 Base](https://github.com/wdmg/yii2-base) module (required)

Installation
============

[](#installation)

To install the module, run the following command in the console:

`$ composer require "wdmg/yii2-forms"`

After configure db connection, run the following command in the console:

`$ php yii forms/init`

And select the operation you want to perform:

1. Apply all module migrations
2. Revert all module migrations
3. Add demo data

Migrations
==========

[](#migrations)

In any case, you can execute the migration and create the initial data, run the following command in the console:

`$ php yii migrate --migrationPath=@vendor/wdmg/yii2-forms/migrations`

Configure
=========

[](#configure)

To add a module to the project, add the following data in your configuration file:

```
'modules' => [
    ...
    'forms' => [
        'class' => 'wdmg\forms\Module',
        'routePrefix' => 'admin'
    ],
    ...
],

```

Usage examples
==============

[](#usage-examples)

To build the ActiveForm with fields you may use the component method Yii::$app-&gt;forms-&gt;build() with `id` or `alias` of form item.

**View in frontend**

```

Feedback

...

Callback

```

**Action in Controller**

```

```

Routing
=======

[](#routing)

Use the `Module::dashboardNavItems()` method of the module to generate a navigation items list for NavBar, like this:

```

```

Status and version \[ready to use\]
===================================

[](#status-and-version-ready-to-use)

- v.1.2.0 - Update copyrights, fix menu dashboard
- v.1.1.2 - RBAC implementation
- v.1.1.1 - Update README.md and setAttributeLabels() fixed

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

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

Recently: every ~294 days

Total

18

Last Release

1042d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (49 commits)")

---

Tags

yii2FormswdmgForm managementyii2-forms

### Embed Badge

![Health badge](/badges/wdmg-yii2-forms/health.svg)

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

PHPackages © 2026

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