PHPackages                             phloxcz/forms-dropdownlist - 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. phloxcz/forms-dropdownlist

ActiveLibrary

phloxcz/forms-dropdownlist
==========================

Searchable DropDownList form control for Nette Framework with AJAX-powered Selection datasource.

v1.0.0(1mo ago)01↑2900%MITPHPPHP &gt;=8.1

Since Mar 27Pushed 1mo agoCompare

[ Source](https://github.com/phloxcz/forms-dropdownlist)[ Packagist](https://packagist.org/packages/phloxcz/forms-dropdownlist)[ Docs](https://github.com/phloxcz/forms-dropdownlist)[ RSS](/packages/phloxcz-forms-dropdownlist/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

phloxcz/forms-dropdownlist
==========================

[](#phloxczforms-dropdownlist)

Searchable **DropDownList** form control for [Nette Framework](https://nette.org) with AJAX-powered `Nette\Database\Table\Selection` datasource.

📖 **[Full documentation →](docs/README.md)**

---

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

[](#installation)

```
composer require phloxcz/forms-dropdownlist
```

Include the assets in your base layout:

```

```

---

Quick start
-----------

[](#quick-start)

### 1. Register the DI extension

[](#1-register-the-di-extension)

```
# config/common.neon
extensions:
    dropdownlist: Phlox\Forms\DropDownList\DropDownListExtension
```

### 2. Add the control to your form

[](#2-add-the-control-to-your-form)

```
$form->addDropDownList('cityId', 'City', $this->link('searchCity!'))
     ->setSelection($this->database->table('cities'), 'id', 'name')
     ->setPlaceholder('Select city…')
     ->setTheme(DropDownListInput::THEME_BOOTSTRAP);
```

### 3. Handle the AJAX signal

[](#3-handle-the-ajax-signal)

```
public function handleSearchCity(string $q = ''): void
{
    $this->sendJson($this['cityForm']['cityId']->fetchData($q));
}
```

### 4. Pre-fill on edit pages

[](#4-pre-fill-on-edit-pages)

```
$form->setValues(['cityId' => $entity->cityId]);
// Label is resolved server-side – no extra AJAX on page load.
```

---

Themes
------

[](#themes)

ConstantFramework`DropDownListInput::THEME_DEFAULT`Framework-agnostic, uses CSS system colors`DropDownListInput::THEME_BOOTSTRAP`Bootstrap 5`DropDownListInput::THEME_TAILWIND`Tailwind CSS 3`array $classes`Custom class map---

License
-------

[](#license)

MIT © [Phlox](https://github.com/phloxcz)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

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

---

Tags

autocompletenetteajaxformselectdropdownlistnette-database

### Embed Badge

![Health badge](/badges/phloxcz-forms-dropdownlist/health.svg)

```
[![Health](https://phpackages.com/badges/phloxcz-forms-dropdownlist/health.svg)](https://phpackages.com/packages/phloxcz-forms-dropdownlist)
```

###  Alternatives

[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[nasext/dependent-select-box

Dependent Select Box for Nette Framework.

21262.8k2](/packages/nasext-dependent-select-box)[nextras/form-components

Form components for Nette Framework.

10242.9k](/packages/nextras-form-components)

PHPackages © 2026

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