PHPackages                             wdmg/yii2-datepicker - 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. wdmg/yii2-datepicker

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

wdmg/yii2-datepicker
====================

Bootstrap3 DatePicker Widget for Yii2

1.1.0(2y ago)194213MITPHP

Since Jan 22Pushed 2y ago2 watchersCompare

[ Source](https://github.com/wdmg/yii2-datepicker)[ Packagist](https://packagist.org/packages/wdmg/yii2-datepicker)[ Docs](https://github.com/wdmg/yii2-datepicker)[ RSS](/packages/wdmg-yii2-datepicker/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (10)Used By (3)

[![Progress](https://camo.githubusercontent.com/dccea8d8aeed2f3bbad8d539958795bf54a03a62c61f496084516c1b1845a9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e33332d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Github all releases](https://camo.githubusercontent.com/862b7ee183a056480efda9deb8f743b410af9d3124dae5746f96affa523798d4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f77646d672f796969322d646174657069636b65722f746f74616c2e737667)](https://GitHub.com/wdmg/yii2-datepicker/releases/)[![GitHub version](https://camo.githubusercontent.com/ef113f3bad0126a23314cfa5df7c55ff0c29adf6a71014b31f0c95e4de3756c7/68747470733a2f2f62616467652e667572792e696f2f67682f77646d672f796969322d646174657069636b65722e737667)](https://github.com/wdmg/yii2-datepicker)[![Progress](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)[![GitHub license](https://camo.githubusercontent.com/045f31ef51f1e8dc6a52d8bacb952e8e993be9ae8c70f17fe2026efab5765bc7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d646174657069636b65722e737667)](https://github.com/wdmg/yii2-datepicker/blob/master/LICENSE)

Yii2 DatePicker
===============

[](#yii2-datepicker)

Bootstrap3 DatePicker Widget for Yii2

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.33 and newest
- Yii2 Bootstrap
- [Bootstrap DatePicker](https://github.com/wdmg/bootstrap-datepicker) v.1.1.0 and newest.

Installation
============

[](#installation)

To install the widget, run the following command in the console:

`$ composer require "wdmg/yii2-datepicker"`

Usage
=====

[](#usage)

Example of standalone widget:

```

```

Example of use with ActiveForm:

```

```

Options
=======

[](#options)

DatePicker extends InputWidget so you can use any options available for this widget. In addition, you can use these custom options if necessary:

NameTypeDefaultDescriptionoptionsarray`['class' => 'form-control']`Standard options for the input widget.pluginOptionsarray`['className' => '.datepicker', 'input' => '.form-control', 'toggle' => '.input-group-btn > button']`Plugin DatePicker options passed to js. Read more here ().templatestring{input}{addon}Widget output template.addonstring`null`Addon template addon. Use this option if you will not use the options listed below.addonTagstringspanAddon input tag.addonStringstring`empty`Addon content. Usually absent if you are using glypicon or fontawesome.addonOptionsarray`['class' => 'glyphicon glyphicon-calendar', 'aria-hidden' => 'true']`Options tag addon input widget.addonContainerTagstringspanAddon container tag.addonContainerOptionsarray`['class' => 'input-group-btn']`Options of the container addon input widget.addonButtonTagstringbuttonTag who will display a DatePicker widget for input.addonButtonOptionsarray`['class' => 'btn btn-default', 'type' => 'button']`Options of tag who will display a DatePicker widget for input.Status and version
==================

[](#status-and-version)

- v.1.1.0 - Update copyrights and dependencies
- v.1.0.8 - Fixed widget ID and init after Pjax reloading

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

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

Recently: every ~368 days

Total

9

Last Release

1059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (37 commits)")

---

Tags

yii2extensionwidgetyiibootstrapdatepickerwdmg

### Embed Badge

![Health badge](/badges/wdmg-yii2-datepicker/health.svg)

```
[![Health](https://phpackages.com/badges/wdmg-yii2-datepicker/health.svg)](https://phpackages.com/packages/wdmg-yii2-datepicker)
```

PHPackages © 2026

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