PHPackages                             tolik505/yii2-related-form - 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. tolik505/yii2-related-form

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

tolik505/yii2-related-form
==========================

It is a widget for melon.ng to clone form elements of related models.

01.9k2PHP

Since Apr 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tolik505/yii2-related-form)[ Packagist](https://packagist.org/packages/tolik505/yii2-related-form)[ RSS](/packages/tolik505-yii2-related-form/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-related-form
=================

[](#yii2-related-form)

It is a widget only for melon.ng to clone form elements of related models.

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

[](#installation)

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

Either run

```
composer require tolik505/yii2-related-form

```

or add

```
"tolik505/yii2-related-form": "dev-master"

```

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

Usage
-----

[](#usage)

After CRUD generating add to getFormConfig()

```
[
    'class' => tolik505\relatedForm\RelatedFormWidget::className(),
    'relation' => 'tests', //name of relation
    /*'uploadBehavior' => [ //if needed UploadBehavior
        [
            'attribute' => 'file_id',
            'extensions' => ['png', 'gif', 'jpg', 'jpeg', 'ico', 'svg'],
            'required' => true
        ]
    ],*/
]

```

\###Javascript Events

```
$(".dynamicform_wrapper").on("beforeInsert", function(e, item) {
    console.log("beforeInsert");
});

$(".dynamicform_wrapper").on("afterInsert", function(e, item) {
    console.log("afterInsert");
});

$(".dynamicform_wrapper").on("beforeDelete", function(e, item) {
    if (! confirm("Are you sure you want to delete this item?")) {
        return false;
    }
    return true;
});

$(".dynamicform_wrapper").on("afterDelete", function(e) {
    console.log("Deleted item!");
});

$(".dynamicform_wrapper").on("limitReached", function(e, item) {
    alert("Limit reached");
});
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a29209861da577de9d853005394f978ebbd05f8e807733d8419ced0de24dc99e?d=identicon)[tolik505](/maintainers/tolik505)

---

Top Contributors

[![tolik505](https://avatars.githubusercontent.com/u/12429244?v=4)](https://github.com/tolik505 "tolik505 (13 commits)")

### Embed Badge

![Health badge](/badges/tolik505-yii2-related-form/health.svg)

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

###  Alternatives

[webbingbrasil/filament-maps

Map components for Filament.

7843.2k](/packages/webbingbrasil-filament-maps)[gwd/seo-meta-nova-field

A Laravel Nova field which adds all SEO related meta fields to an Resource.

2494.4k1](/packages/gwd-seo-meta-nova-field)

PHPackages © 2026

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