PHPackages                             flame/bootstrapdatepicker-control - 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. flame/bootstrapdatepicker-control

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

flame/bootstrapdatepicker-control
=================================

Datepicker for nette bootstrap form renderer

01.1kJavaScript

Since Jan 20Pushed 13y ago1 watchersCompare

[ Source](https://github.com/flame-org/BootstrapDatepicker-Control)[ Packagist](https://packagist.org/packages/flame/bootstrapdatepicker-control)[ RSS](/packages/flame-bootstrapdatepicker-control/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bootstrap Datepicker
====================

[](#bootstrap-datepicker)

**Add dapepicker control to Nette forms styled by Twitter Bootstrap**

Based on

-  (original from Stefan Petre's )
-

\##Config

\######1) Attach necessary files (jQuery, Twitter Bootstrap and netteForms are required) and following lines

```

```

You can attach language file.

```

```

Translantions can be downloaded from  or you can make you own.

\######2) Init datepickers

```
	$(document).ready(function () {
		$('.bootstrapDatePicker').datepicker();
	});

```

\######3) Add extension method to all form (date format and languge are set globally)

```
		\Flame\Forms\Controls\BootstrapDatePicker::register();
```

**Default values ('yyyy-mm-dd', 'en', 'addDatePicker')**

### Full example of usage

[](#full-example-of-usage)

```
		$form->addDatePicker('date', "Date")
		->setClassName('myBetterClass')//'bootstrapDatePicker' defalt
		->setAutoclose(true)//false default
		->setTodayHighlight()//or setTodadyHighlight(true); false default
		->setWeekStart(1)//0 for Sunday, 6 for Saturday; 1 is default
		->setKeyboardNavigation()//or setKyeboardnavigation(true); true default
		->setTodayButton(\Flame\Forms\Controls\BootstrapDatePicker::TODAY_BUTTON_TRUE)//TODAY_BUTTON_FALSE | TODAY_BUTTON_TRUE | TODAY_BUTTON_LINKED; TODAY_BUTTON_FALSE default
		->setStartview(\Flame\Forms\Controls\BootstrapDatePicker::STARTVIEW_MONTH)//STARTVIEW_MONTH | STARTVIEW_YEAR | STARTVIEW_DECADE; STARTVIEW_MONTH default
		->setRequired()
		->setInputButtonStyle(\Flame\Forms\Controls\BootstrapDatePicker::BUTTON_STYLE_ICON_RIGHT)//BUTTON_STYLE_ICON_LEFT | BUTTON_STYLE_ICON_RIGHT | BUTTON_STYLE_ICON_NONE; BUTTON_STYLE_ICON_RIGHT default
		->addCondition(Nette\Forms\Form::FILLED)
		->addRule(
			\Flame\Forms\Controls\BootstrapDatePicker::DATE_RANGE,
			'Entered date is not within allowed range.',
			array(new DateTime('2012-10-02'),	null));
```

Alternatively you can use

```
	  ->addRule(
			Flame\Forms\Controls\BootstrapDatePicker::DATE_RANGE,
			'Entered date is not within allowed range.',
			array(new DateTime('2012-10-02'), null));
```

to set only calendar minimum (or only maximum). Datepicker will show only applicable dates. Value is checked on submit by javascript and then by php on server side.

Use Flame\\Forms\\Controls\\BootstrapDatePicker::DATE\_RANGE to apply date range. \\Nette\\Forms\\Form::RANGE will not work

### Control generates something like this

[](#control-generates-something-like-this)

```

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/25aa07e004e9743a4332fbcfd17628e92f82c6457916442530850183cf7c0bf3?d=identicon)[jsifalda](/maintainers/jsifalda)

---

Top Contributors

[![remism](https://avatars.githubusercontent.com/u/2753333?v=4)](https://github.com/remism "remism (9 commits)")[![jsifalda](https://avatars.githubusercontent.com/u/1549390?v=4)](https://github.com/jsifalda "jsifalda (6 commits)")

### Embed Badge

![Health badge](/badges/flame-bootstrapdatepicker-control/health.svg)

```
[![Health](https://phpackages.com/badges/flame-bootstrapdatepicker-control/health.svg)](https://phpackages.com/packages/flame-bootstrapdatepicker-control)
```

###  Alternatives

[jshannon63/jsoncollect

Supercharge your JSON using collections

154.9k1](/packages/jshannon63-jsoncollect)

PHPackages © 2026

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