PHPackages                             olicek/form-selectize - 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. olicek/form-selectize

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

olicek/form-selectize
=====================

Form extension for Nette framework

v1.1(7y ago)124.1k14[2 issues](https://github.com/Olicek/form-selectize/issues)[1 PRs](https://github.com/Olicek/form-selectize/pulls)GPL-3.0PHPPHP &gt;= 5.4.0

Since Sep 29Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Olicek/form-selectize)[ Packagist](https://packagist.org/packages/olicek/form-selectize)[ Docs](https://github.com/Olicek/form-selectize)[ RSS](/packages/olicek-form-selectize/feed)WikiDiscussions master Synced 1mo ago

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

form-selectize
==============

[](#form-selectize)

[![Latest stable](https://camo.githubusercontent.com/b669f532718235e333847444cfc8cf68134d408c1c1f1864022b1de78eea6c3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6c6963656b2f666f726d2d73656c656374697a652e737667)](https://packagist.org/packages/olicek/form-selectize) [![Packagist](https://camo.githubusercontent.com/e9a86e0bbae88f9232d44fab650ea1a70cfb5ff7a7b0629fa20ff44721d66600/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6c6963656b2f666f726d2d73656c656374697a652e737667)](https://packagist.org/packages/olicek/form-selectize)

Form extension for Nette framework

More documentations
-------------------

[](#more-documentations)

- \[javascript settings\] ()
- \[ajax\] ()

Requirements
------------

[](#requirements)

- Nette 2.2+
- jQuery 1.8+
- \[Selectize\] ()

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

[](#installation)

The best way to install olicek/form-selectize is using [Composer](http://getcomposer.org/):

```
$ composer require olicek/form-selectize
```

After installation server site, you have to install client site. The best way is use [bower](http://bower.io/search/?q=selectize-for-nette).

Link `selectize.js` from **client-side** and original `selectize.js` and call somewhere function `selectize()`.

| NOTE: If you need use previous javascript, it is available in selectize-old.js

Last step is enable the extension using your neon config

```
extensions:
	selectize: App\Form\Control\SelectizeExtension

```

Default configuration
---------------------

[](#default-configuration)

```
selectize:
	mode: full # second mode is `select` for selection just 1 option
	create: on
	maxItems: null
	delimiter: #/
	plugins:
		- remove_button
	valueField: id
	labelField: name
	searchField: name

```

Data in array for full mode
---------------------------

[](#data-in-array-for-full-mode)

```
array (2)
	0 => array (2)
		id => 1
		name => "First item"
	1 => array (2)
		id => 2
		name => "Second item"

```

id is set as valueField and name as labelField and searchField in config.neon. You can use whatever, have to just set in config.neon or in addSelectize method. For example:

```
valueField: slug

```

Data in array for select mode
-----------------------------

[](#data-in-array-for-select-mode)

Data for select mode are same as for SelectBox:

```
array (2)
	1 => "First item",
	2 => "Second item"

```

Using
-----

[](#using)

#### Default settings from config.neon

[](#default-settings-from-configneon)

```
$form->addSelectize('tags', 'štítky', $arrayData);
```

#### custome settings in method first way (array)

[](#custome-settings-in-method-first-way-array)

```
$form->addSelectize('tags', 'štítky', $arrayData, ['create' => false, 'maxItems' => 3]);
```

#### custome settings in method first way (method)

[](#custome-settings-in-method-first-way-method)

```
$form->addSelectize('tags', 'štítky', $arrayData)->setValueField('slug')->delimiter('_');
```

Output is:
----------

[](#output-is)

#### Select mode

[](#select-mode)

```
dump($form->values->tags); // return "1"

```

#### Full mode

[](#full-mode)

In full mode it will return array with valueField values. If you create some new tag, it will in sub array with plain text.

```
array (3)
	0 => "1"
	1 => "2"
	new => array (1)
		0 => "Third item"

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 84% 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 ~560 days

Total

3

Last Release

2764d ago

Major Versions

v0.9 → v1.02016-07-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bfabddbe1f9c8018776a699a68127642e183998f54aebc5bbec428e6c16bd10?d=identicon)[Oli](/maintainers/Oli)

---

Top Contributors

[![Olicek](https://avatars.githubusercontent.com/u/2891953?v=4)](https://github.com/Olicek "Olicek (42 commits)")[![Tomas2D](https://avatars.githubusercontent.com/u/15633909?v=4)](https://github.com/Tomas2D "Tomas2D (3 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (2 commits)")[![mlazovla](https://avatars.githubusercontent.com/u/2652944?v=4)](https://github.com/mlazovla "mlazovla (1 commits)")[![nechutny](https://avatars.githubusercontent.com/u/5719315?v=4)](https://github.com/nechutny "nechutny (1 commits)")[![temistokles](https://avatars.githubusercontent.com/u/1108659?v=4)](https://github.com/temistokles "temistokles (1 commits)")

### Embed Badge

![Health badge](/badges/olicek-form-selectize/health.svg)

```
[![Health](https://phpackages.com/badges/olicek-form-selectize/health.svg)](https://phpackages.com/packages/olicek-form-selectize)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

13272.2k3](/packages/radekdostal-nette-datetimepicker)

PHPackages © 2026

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