PHPackages                             n2ref/coreui-form-field-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. [Framework](/categories/framework)
4. /
5. n2ref/coreui-form-field-select2

ActiveFramework[Framework](/categories/framework)

n2ref/coreui-form-field-select2
===============================

CoreUI Form field select2

1.0.3(1y ago)06GPL-3.0-or-laterPHPPHP &gt;=8.0.0

Since Jun 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/n2ref/coreui-form-field-select2-php)[ Packagist](https://packagist.org/packages/n2ref/coreui-form-field-select2)[ Docs](https://github.com/n2ref/coreui-form-field-select2-php)[ RSS](/packages/n2ref-coreui-form-field-select2/feed)WikiDiscussions main Synced 1mo ago

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

Coreui form field select2
=========================

[](#coreui-form-field-select2)

[Online documentation](https://n2ref.github.io/coreui-form-field-select2)

[js repository](https://n2ref.github.io/coreui-form-field)

### Install

[](#install)

```
composer install n2ref/coreui-form-field-select2-php
```

### Select2 options

[](#select2-options)

[select2.org](https://select2.org)

### Example usage

[](#example-usage)

```
$form = new Form();

$form->setRecord([
    'field' => 'Reactive',
]);

$options = [
    'Reactive',
    'Solution',
    'Conglomeration',
    'Algoritm',
    'Holistic',
];

$form->setFields([
    (new Field\Select2('field', 'title')))->setWidth(300)->setOptions($options)
        ->setSelect2([
            "placeholder"     => 'Write your value',
            "tags"            => true,
            "tokenSeparators" => [',', ' ']
        ]),
]);

echo json_encode($form->toArray());
```

Output

```
{
    "component": "coreui.form",
    "record"  : {
      "field": "Reactive"
    },
    "fields"  : [

      {
        "type": "select2",
        "name": "field",
        "label": "title",
        "width": 300,
        "options": [
          "Reactive", "Solution", "Conglomeration", "Algoritm", "Holistic"
        ],
        "select2": {
            "placeholder": "Write your value",
            "tags": true,
            "tokenSeparators": [",", " "]
          }
      }

    ]
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

2

Last Release

687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d46eec372620664574541ea54a3278872c687d2529c2b0aa91d8f6f677e5299?d=identicon)[n2ref](/maintainers/n2ref)

---

Top Contributors

[![n2ref](https://avatars.githubusercontent.com/u/5215787?v=4)](https://github.com/n2ref "n2ref (1 commits)")

---

Tags

frameworkformcoreui

### Embed Badge

![Health badge](/badges/n2ref-coreui-form-field-select2/health.svg)

```
[![Health](https://phpackages.com/badges/n2ref-coreui-form-field-select2/health.svg)](https://phpackages.com/packages/n2ref-coreui-form-field-select2)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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