unclead/yii2-multiple-input
Widget for handle multiple inputs for an attribute of Yii2 framework model
Maintainers
Package info
github.com/unclead/yii2-multiple-input
Language:JavaScript
Type:yii2-extension
pkg:composer/unclead/yii2-multiple-input
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.38
Requires (Dev)
- phpunit/phpunit: 5.7.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
BSD-3-Clause 21d0138c1364903c5237c8a6d7a39e4b619ffac7
- Eugene Tupikov <unclead.nsk.woop@gmail.com>
yii2yii2 multiple inputyii2 array inputyii2 multiple fieldyii2 tabular input
This package is auto-updated.
Last update: 2026-05-21 18:35:14 UTC
README
Yii2 widget for handle multiple inputs for an attribute of model and tabular input for batch of models.
👁 Latest Stable Version
👁 Total Downloads
👁 Daily Downloads
👁 Latest Unstable Version
👁 License
Latest release
The latest stable version of the extension is v2.27.0 Follow the instruction for upgrading from previous versions
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require unclead/yii2-multiple-input "~2.0"
or add
"unclead/yii2-multiple-input": "~2.0"
to the require section of your composer.json file.
Basic usage
For example you want to have an ability of entering several emails of user on profile page. In this case you can use yii2-multiple-input widget like in the following code
use unclead\multipleinput\MultipleInput; ... <?php echo $form->field($model, 'emails')->widget(MultipleInput::className(), [ 'max' => 6, 'min' => 2, // should be at least 2 rows 'allowEmptyList' => false, 'enableGuessTitle' => true, 'addButtonPosition' => MultipleInput::POS_HEADER, // show add button in the header ]) ->label(false); ?>
Documentation
You can find a full version of documentation here
License
yii2-multiple-input is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.
