PHPackages                             2amigos/yii2-bootstrap-form-helpers-library - 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. 2amigos/yii2-bootstrap-form-helpers-library

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

2amigos/yii2-bootstrap-form-helpers-library
===========================================

Bootstrap Form Helper widgets for Yii2.

0.1.1(12y ago)1021.2k↓23.8%3[1 issues](https://github.com/2amigos/yii2-bootstrap-form-helpers-library/issues)BSD-3-ClauseJavaScript

Since May 3Pushed 12y ago9 watchersCompare

[ Source](https://github.com/2amigos/yii2-bootstrap-form-helpers-library)[ Packagist](https://packagist.org/packages/2amigos/yii2-bootstrap-form-helpers-library)[ RSS](/packages/2amigos-yii2-bootstrap-form-helpers-library/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Bootstrap Form Helpers Library for Yii2
=======================================

[](#bootstrap-form-helpers-library-for-yii2)

Bootstrap Form Helpers Widget library allows you to use the amazing collection of jQuery plugins created by [Vincent Lamanna](http://bootstrapformhelpers.com/) and help you build better looking forms.

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

[](#installation)

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

Either run

```
php composer.phar require "2amigos/yii2-bootstrap-form-helpers-library" "*"

```

or add

```
"2amigos/yii2-bootstrap-form-helpers-library" : "*"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

The library comes with the following widgets:

- ColorPicker
- CountryPicker
- CurrencyPicker
- DatePicker
- FontPicker
- FontSizePicker
- GoogleFontPicker
- LanguagePicker
- NumberInput
- PhoneInput
- Select
- Slider
- StatePicker
- TimePicker
- TimeZonePicker

Pickers are `Select` are DropDownLists that have pretty much work the same in terms of usage. So, the following examples shows how to use an input and a DropDownList. I am sure you will figure out how to make use of the others until we have written the proper documentation site for all our extensions.

```
// using Select Widget, the custom select HTML element of the library

dosamigos\formhelpers\Select::widget([
    'model' => $model,
    'attribute' => 'attributeName',
    'items' => [
        '1' => 'One option',
        '2' => 'Another option'
    ],
    // for all possible client options, please see
    // http://bootstrapformhelpers.com/select/#jquery-plugins
    'clientOptions' => [
        'filter' => 'true' // boolean must be as a string
    ]
]);

// using the NumberInput
dosamigos\formhelpers\NumberInput::widget([
    'model' => $model,
    'attribute' => 'updated_at',
    // not required if we use it with yii\bootstrap\ActiveForm
    'options' => ['class' => 'form-control'],
    // for all possible client options, please see
    // http://bootstrapformhelpers.com/number/#jquery-plugins
    'clientOptions' => [
        'min' => 20,
        'max' => 40
    ]
]);
// (remember that you can also use the following format)
use dosamigos\formhelpers\NumberInput;

$form->input($model, 'attribute')->widget(NumberInput::className(),['clientOptions' => ['min' => 20, 'max' => 40]]);

// using the DatePicker with a selected language
dosamigos\formhelpers\DatePicker::widget([
    'model' => $model,
    'attribute' => 'updated_at',
    'language' => 'es_ES',
    'clientOptions' => [
        'format' => 'm/d/y',
    ]
]);

// using the CurrencyPicker with flags
dosamigos\formhelpers\CurrencyPicker::widget([
    'model' => $model,
    'attribute' => 'updated_at',
    // important! if we don't use the custom select HTML we won't see the flags
    'selectBox' => true,
    'clientOptions' => [
        'flags' => 'true',
    ]
])
```

Further Information
-------------------

[](#further-information)

For further information regarding the multiple options for the different plugins please visit [its website](http://bootstrapformhelpers.com/)

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)

*Web development has never been so fun!*[www.2amigos.us](http://www.2amigos.us)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

4441d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Tags

helperextensionwidgetyiiform

### Embed Badge

![Health badge](/badges/2amigos-yii2-bootstrap-form-helpers-library/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-yii2-bootstrap-form-helpers-library/health.svg)](https://phpackages.com/packages/2amigos-yii2-bootstrap-form-helpers-library)
```

###  Alternatives

[evgeniyrru/yii2-slick

Yii2 extension for Slick Carousel

22203.5k3](/packages/evgeniyrru-yii2-slick)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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