PHPackages                             yii-ui/yii2-materialize-select2 - 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. yii-ui/yii2-materialize-select2

AbandonedArchivedYii2-extension

yii-ui/yii2-materialize-select2
===============================

Select2 Widget for Yii 2 with Materialize styles

v1.1.2(7y ago)2749[2 issues](https://github.com/yii-ui/yii2-materialize-select2/issues)1MITSCSSPHP &gt;=7.0.0

Since Jun 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yii-ui/yii2-materialize-select2)[ Packagist](https://packagist.org/packages/yii-ui/yii2-materialize-select2)[ Docs](https://www.yii-ui.com/yii2-materialize-select2)[ RSS](/packages/yii-ui-yii2-materialize-select2/feed)WikiDiscussions master Synced yesterday

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

[![Yii UI](https://avatars1.githubusercontent.com/u/22790740?s=60)](https://www.yii-ui.com/) Select2 Widget for Yii 2 with Materialize styles
=============================================================================================================================================

[](#-select2-widget-for-yii-2-with-materialize-styles)

[![Latest Stable Version](https://camo.githubusercontent.com/b0ec3b9211a33951785bc234261f675348ca6c0d888b8d07f03e4a77f15a6826/68747470733a2f2f706f7365722e707567782e6f72672f7969692d75692f796969322d6d6174657269616c697a652d73656c656374322f76657273696f6e)](https://packagist.org/packages/yii-ui/yii2-materialize-select2)[![Total Downloads](https://camo.githubusercontent.com/80a9e50d90a8ab90181a3e3c311c8aeb5487f505eaf69ec192aef001eb9532cf/68747470733a2f2f706f7365722e707567782e6f72672f7969692d75692f796969322d6d6174657269616c697a652d73656c656374322f646f776e6c6f616473)](https://packagist.org/packages/yii-ui/yii2-materialize-select2)[![Maintainability](https://camo.githubusercontent.com/905b3fac8962bc537936d5e03c811cb01f3db70a52404b335a933301f48dc280/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66386661336331323932383766376335363761612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yii-ui/yii2-materialize-select2/maintainability)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)[![License](https://camo.githubusercontent.com/a885a0931937c9f7a27524b1bde325d71e1342296632ed7eeeb6aec579439af3/68747470733a2f2f706f7365722e707567782e6f72672f7969692d75692f796969322d6d6174657269616c697a652d73656c656374322f6c6963656e7365)](https://packagist.org/packages/yii-ui/yii2-materialize-select2)

This is an [Yii framework 2.0](http://www.yiiframework.com) widget of the [Select2](https://select2.org/) replacement for select boxes with styles for the [Materialize CSS Framework](http://materializecss.com/).

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

[](#installation)

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

Either run

```
php composer.phar require yii-ui/yii2-materialize-select2

```

or add

```
"yii-ui/yii2-materialize-select2": "~1.1.0"

```

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

Usage
-----

[](#usage)

as active form element:

```
use yiiui\yii2materializeselect2\Select2:

echo $form->field($model, 'attribute')->widget(Select2::class, [
    'items' => [1 => 'Apple', 2 => 'Banana'],
    'options' => [
        'placeholder' => 'Select your favourite',
    ],
    'clientOptions' => [
        'allowClear' => true
    ],
]);
```

or as widget:

```
Select2::widget([
    'name' => 'input-name',
    'value' => 2,
    'items' => [1 => 'Apple', 2 => 'Banana'],
    'options' => [
        'placeholder' => 'Select your favourite',
    ],
    'clientOptions' => [
        'allowClear' => true
    ],
]);
```

More [Examples](https://www.yii-ui.com/yii2-materialize-select2) will be added soon at . For plugin configuration see Select2 [Documentation](https://select2.org/).

Documentation
-------------

[](#documentation)

[Documentation](https://www.yii-ui.com/yii2-materialize-select2) will be added soon at .

License
-------

[](#license)

**yii2-materialize-select2** is released under the MIT License. See the [LICENSE.md](LICENSE.md) for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

2869d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1618434?v=4)[Christoph Möke](/maintainers/cmoeke)[@cmoeke](https://github.com/cmoeke)

![](https://avatars.githubusercontent.com/u/49100153?v=4)[Stefan Brandenburger](/maintainers/StefanBrandenburger)[@StefanBrandenburger](https://github.com/StefanBrandenburger)

---

Top Contributors

[![cmoeke](https://avatars.githubusercontent.com/u/1618434?v=4)](https://github.com/cmoeke "cmoeke (6 commits)")

---

Tags

materializeselect2uiyii2yii2-extensionpluginuijqueryyii2extensionwidgetformdropdownmaterializeselect2yii-ui

### Embed Badge

![Health badge](/badges/yii-ui-yii2-materialize-select2/health.svg)

```
[![Health](https://phpackages.com/badges/yii-ui-yii2-materialize-select2/health.svg)](https://phpackages.com/packages/yii-ui-yii2-materialize-select2)
```

###  Alternatives

[kartik-v/yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M191](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M60](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

814.9M18](/packages/kartik-v-yii2-widget-depdrop)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)

PHPackages © 2026

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