PHPackages                             dersonsena/yii2-widget-inputsaddon - 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. dersonsena/yii2-widget-inputsaddon

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

dersonsena/yii2-widget-inputsaddon
==================================

A Widget for Yii 2 with a simple way to group fields with bootstrap components

1.0.3(8y ago)158BSD-3-ClausePHPPHP &gt;=7

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dersonsena/yii2-widget-inputsaddon)[ Packagist](https://packagist.org/packages/dersonsena/yii2-widget-inputsaddon)[ RSS](/packages/dersonsena-yii2-widget-inputsaddon/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Yii 2 - Widget for the Boostrap Inputs Addon
============================================

[](#yii-2---widget-for-the-boostrap-inputs-addon)

A Widget for Yii 2 with a simple way to group fields with bootstrap components

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

[](#installation)

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

Either run

```
$ php composer.phar require dersonsena/yii2-widget-inputsaddon "dev-master"

```

or add

```
"dersonsena/yii2-widget-inputsaddon": "dev-master"

```

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

Properties
----------

[](#properties)

This widget supports all the parameters similar to the `\yii\widgets\InputWidget` widget. The following additional properties are important for the plugin configuration:

### side

[](#side)

`string` the side of the Group Addon. Possibles values:

- `AddonAbstract::RIGHT_SIDE` (default value);
- `AddonAbstract::LEFT_SIDE`.

### size

[](#size)

`string` the size css class of the Group Addon. See more in: . Possibles values:

- `AddonAbstract::SIZE_DEFAULT` (default value);
- `AddonAbstract::SIZE_LARGE`;
- `AddonAbstract::SIZE_SMALL`;

### icon

[](#icon)

`string` the icon css class or text of the Group Addon;

### useIconText

[](#useicontext)

`boolean` if `true`, the widget will render a text instead of a HTML icon

Usage Input Addon's
-------------------

[](#usage-input-addons)

The implementations below can be done by widgets: `AreaAddon`, `EmailAddon`, `MoneyAddon`, `PercentAddon` and `PhoneAddon`:

```
// the widget usege WITH ActiveForm and model. Minimal configuration
echo $form->field($model, 'IMO_VAL_ARE')
    ->widget(EmailAddon::className());

// the widget usege WITHOUT ActiveForm or model
echo EmailAddon::widget([
    'name' => 'person_email',
    'value' => 'username@email.com.br'
]);

// the example for costumization
echo $form->field($model, 'email_field')
    ->widget(EmailAddon::className(), [
        'side' => EmailAddon::RIGHT_SIDE,
        'size' => EmailAddon::SIZE_LARGE,
        'icon' => 'fa fa-envelope' // default is: glyphicon glyphicon-envelope
        'forceEmailType' => true, // Force the input field to be email type. Available only for EmailAddon
        'options' => [
            'placeholder' => 'Type your email...'
        ]
    ])

// Text instead icon
echo $form->field($model, 'email_field')
    ->widget(EmailAddon::className(), [
        'icon' => '@'
        'useIconText' => true
    ])
```

Usage Buttons Addon
-------------------

[](#usage-buttons-addon)

The bootstrap Button Addons. Please, for more details, see the .

```
echo $form->field($model, 'person_id')
    ->widget(ButtonsAddon::className(), [
        'buttons' => [
            Html::button("", ['class' => 'btn btn-primary']),
            Html::button("Add", ['class' => 'btn btn-default', 'onclick' => 'alert("Add")']),
            Html::button("Remove", ['class' => 'btn btn-danger'])
        ]
    ])
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3214d ago

### Community

Maintainers

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

---

Top Contributors

[![dersonsena](https://avatars.githubusercontent.com/u/9482515?v=4)](https://github.com/dersonsena "dersonsena (9 commits)")

---

Tags

yii2input-addonboostrap add onbootstrap group

### Embed Badge

![Health badge](/badges/dersonsena-yii2-widget-inputsaddon/health.svg)

```
[![Health](https://phpackages.com/badges/dersonsena-yii2-widget-inputsaddon/health.svg)](https://phpackages.com/packages/dersonsena-yii2-widget-inputsaddon)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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