PHPackages                             tacoberu/nette-form-controls - 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. [Templating &amp; Views](/categories/templating)
4. /
5. tacoberu/nette-form-controls

ActiveLibrary[Templating &amp; Views](/categories/templating)

tacoberu/nette-form-controls
============================

Ext form controls for nette, DateInput, MultiUpload, and latte macros.

v3.0.5(2y ago)02.7k↑25%MITJavaScriptPHP &gt;=5.3.0CI failing

Since Sep 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tacoberu/nette-form-controls)[ Packagist](https://packagist.org/packages/tacoberu/nette-form-controls)[ RSS](/packages/tacoberu-nette-form-controls/feed)WikiDiscussions master Synced today

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

nette-form-controls
===================

[](#nette-form-controls)

[![Build Status](https://camo.githubusercontent.com/f4cc43a9db7bd0027a8a35fee8d50aebac04a5355200c6704dc1c7be8cd3e166/68747470733a2f2f7472617669732d63692e6f72672f7461636f626572752f6e657474652d666f726d2d636f6e74726f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tacoberu/nette-form-controls)

Ext form controls for Nette: DateInput, TimeInput, ColorInput, MultipleUploadControl, LabelField, SelectBoxRemoteControl and latte macros. With example javascript support.

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

[](#installation)

```
composer require tacoberu/nette-form-controls

```

Usage
-----

[](#usage)

### DateInput

[](#dateinput)

```
$form = new Nette\Forms\Form;

$form['date'] = new DateInputSingle('Date:', 'j. n. Y');
$form['date']->setStart(new Data\DateTime('2011-01-01'));
$form['date']->setEnd(new Data\DateTime('2011-01-11'));
$form['date']->setDefaultValue(new Data\DateTime('2003-12-02'));
```

### TimeInput

[](#timeinput)

```
$form = new Nette\Forms\Form;

$form['time'] = new TimeInputSingle('Time:');
$form['time']->setDefaultValue(new Data\Time('20:12:02'));
```

### ColorInput

[](#colorinput)

```
$form = new Nette\Forms\Form;

$form['color'] = new ColorInput('Color:');
$form['color']->setDefaultValue('#ababab');
```

### MultipleUploadControl

[](#multipleuploadcontrol)

```
$form = new Nette\Forms\Form;

$form['attachments'] = new MultipleUploadControl('Color:');
$form['attachments']->setDefaultValue([
	new Http\FileUploaded("uploaded/account/56695/mp16.jpg", "image/jpeg"),
]);
```

[![](example/files-form.png)](example/files-form.png)

### LabelField

[](#labelfield)

```
$form = new Nette\Forms\Form;

$form['label'] = new LabelField('Label:');
$form['label']->setDefaultValue('Lorem ipsum doler ist.');
```

[![](example/labelfield-form.png)](example/labelfield-form.png)

### SelectBoxRemoteControl

[](#selectboxremotecontrol)

```
$form = new Nette\Forms\Form;

// CallbackQueryModel is buildin implementation of generic QueryModel.
$categorySelectQueryModel = new CallbackQueryModel(function($term, $page, $pageSize) use ($data) {
	$results = [];
	foreach ($data as $x) {
		if ($term && stripos($x->label, $term) === False) {
			continue;
		}
		$results[] = (object) [
			'id' => $x->id,
			'label' => $x->label,
		];
	}
	$total = count($results);
	$offset = ($page - 1) * $pageSize;
	return (object) [
		'total' => $total,
		'items' => array_slice($results, $offset, $pageSize),
	];
}, function($id) use ($data) {
	foreach ($data as $x) {
		if ($x->id === $id) {
			return $x;
		}
	}
});

$form['category'] = new SelectBoxRemoteControl($categorySelectQueryModel, 'Category:');
$form['tags'] = new MultiSelectBoxRemoteControl($this->getTagSelectQueryModel(), 'Tags:');
```

[![](example/remoteselect-form.png)](example/remoteselect-form.png)

### Form with initialized callback.

[](#form-with-initialized-callback)

```
$form = new Taco\Nette\Application\UI\Form(null);
```

or

```
// callback will be called only at the beginning
$form = new Taco\Nette\Application\UI\Form(function() {
	return [
		'id' => 42,
		'title' => 'Lorem ipsum doler ist',
	];
});
```

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

Total

20

Last Release

669d ago

Major Versions

v1.0.0 → v2.3.02017-07-06

v0.9.0.11 → v2.4.12019-09-08

v2.4.1 → v3.0.02021-12-07

v2.4.2 → v3.0.22022-04-12

v2.4.4 → v3.0.32022-07-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d9535bc57ab9e7c844b76be57d024b97eb84e9f8a9d308537afffe9cf81c409?d=identicon)[tacoberu](/maintainers/tacoberu)

---

Top Contributors

[![tacoberu](https://avatars.githubusercontent.com/u/1828339?v=4)](https://github.com/tacoberu "tacoberu (52 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tacoberu-nette-form-controls/health.svg)

```
[![Health](https://phpackages.com/badges/tacoberu-nette-form-controls/health.svg)](https://phpackages.com/packages/tacoberu-nette-form-controls)
```

###  Alternatives

[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[nepada/form-renderer

Latte template based form renderer for Nette forms with full support for Bootstrap 3, 4 &amp; 5.

11250.1k](/packages/nepada-form-renderer)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1695.8k2](/packages/nextras-forms-rendering)

PHPackages © 2026

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