PHPackages                             preilakos/dynamicform - 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. preilakos/dynamicform

ActiveYii2-extension

preilakos/dynamicform
=====================

Upgraded version of the yii2-extensions DynamicForm extension with advanced security features.

06JavaScript

Since May 1Pushed 1y agoCompare

[ Source](https://github.com/preilakos/dynamicform)[ Packagist](https://packagist.org/packages/preilakos/dynamicform)[ RSS](/packages/preilakos-dynamicform/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Extension for Making Dynamic Forms
=======================================

[](#yii2-extension-for-making-dynamic-forms)

It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility. [![yii2-dynamicform](images/sample.jpeg)](images/sample.jpeg)

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

[](#installation)

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

Either run

```
composer require --prefer-dist preilakos/dynamicform:"^1.0.0"

```

or add

```
"preilakos/dynamicform": "^1.0.0"

```

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

Extension Usage
---------------

[](#extension-usage)

### Databases

[](#databases)

To explain usage of this extension we are going to have a sample scenario where we are building address book for customers. Each customer can have multiple addresses. See the image below for further details.

[![Database](images/scenario.jpeg)](images/scenario.jpeg)

### Models

[](#models)

With that database, our assumption is you have two models `Customer` and `Address` classes.

```
