Download the PHP package zarkasi/yii2-dynamicform without Composer
On this page you can find all versions of the php package zarkasi/yii2-dynamicform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zarkasi/yii2-dynamicform
More information about zarkasi/yii2-dynamicform
Files in zarkasi/yii2-dynamicform
Package yii2-dynamicform
Short Description It Is Forked Form wbraganca/yii2-dynamicform
License BSD-3-Clause
Informations about the package yii2-dynamicform
This is Forked from Wbraganca Dynamic Form
For Using in Personal Use.
yii2-dynamicform
It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.

Installation
Requires PHP ~8.5.12 (8.5.12 or later 8.5.x). Older PHP versions are not supported: they are vulnerable to php2shell (CVE-2026-109618 / CVE-2026-109619).
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json file.
Known limitation: zero-item forms
When a nested widget starts with zero items (no template item rendered in the initial markup), the add-item button has no DOM template to clone. There is no default/fallback template in this case — ensure at least one template item is rendered server-side if you need the "add" action to work from an empty state.
Demos
Usage
Hypothetical Scenario

The View
Javascript Events
The Controller (sample code)
Model Class
To zero or more elements (use the following code in your view file)
All versions of yii2-dynamicform with dependencies
yiisoft/yii2 Version ~2.0.5
symfony/css-selector Version ^7.4 || ^8.0
symfony/dom-crawler Version ^7.4 || ^8.0