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

ActiveYii2-extension

integready/yii2-datepicker-widget
=================================

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

v1.4.1(9y ago)0155BSD-3-ClausePHP

Since Nov 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/IntegReady/yii2-widget-datepicker)[ Packagist](https://packagist.org/packages/integready/yii2-datepicker-widget)[ Docs](https://github.com/IntegReady/yii2-widget-datepicker)[ RSS](/packages/integready-yii2-datepicker-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (16)Used By (0)

yii2-datepicker-widget
======================

[](#yii2-datepicker-widget)

The DatePicker widget is a Yii 2 wrapper for the [Bootstrap DatePicker plugin](http://eternicode.github.io/bootstrap-datepicker) with various enhancements. The plugin is a fork of Stefan Petre's DatePicker (of eyecon.ro), with improvements by @eternicode. The widget is specially styled for Yii framework 2.0 and Bootstrap 3 and allows graceful degradation to a normal HTML text input, if the browser does not support JQuery. The widget supports these markups:

- Simple Input Markup
- Component Markup - Addon Prepended
- Component Markup - Addon Appended
- Inline / Embedded Markup
- Date Range Markup (from and to dates)
- Solo Button Markup

> NOTE: This extension is a sub repo split of [yii2-widgets](https://github.com/dieruckus/yii2-widgets). The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of [yii2-widgets](http://demos.krajee.com/widgets).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/dieruckus/yii2-widget-datepicker/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

To install, either run

```
$ php composer.phar require integready/yii2-datepicker-widget "@dev"

```

or add

```
"integready/yii2-datepicker-widget": "@dev"

```

to the `require` section of your `composer.json` file.

Latest Release
--------------

[](#latest-release)

> NOTE: The latest version of the module is v1.3.9. Refer the [CHANGE LOG](https://github.com/dieruckus/yii2-widget-datepicker/blob/master/CHANGE.md) for details.

Demo
----

[](#demo)

You can refer detailed [documentation and demos](http://demos.krajee.com/widget-details/datepicker) on usage of the extension.

Usage
-----

[](#usage)

```
use integready\date\DatePicker;

// usage without model
echo 'Check Issue Date';
echo DatePicker::widget([
	'name' => 'check_issue_date',
	'value' => date('d-M-Y', strtotime('+2 days')),
	'options' => ['placeholder' => 'Select issue date ...'],
	'pluginOptions' => [
		'format' => 'dd-M-yyyy',
		'todayHighlight' => true
	]
]);
```

License
-------

[](#license)

**yii2-datepicker-widget** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 74% 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 ~60 days

Recently: every ~103 days

Total

15

Last Release

3358d ago

### Community

Maintainers

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

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (77 commits)")[![dieruckus](https://avatars.githubusercontent.com/u/18737256?v=4)](https://github.com/dieruckus "dieruckus (8 commits)")[![karpy47](https://avatars.githubusercontent.com/u/8948719?v=4)](https://github.com/karpy47 "karpy47 (2 commits)")[![Stern87](https://avatars.githubusercontent.com/u/13180074?v=4)](https://github.com/Stern87 "Stern87 (2 commits)")[![dogrocker](https://avatars.githubusercontent.com/u/8379027?v=4)](https://github.com/dogrocker "dogrocker (2 commits)")[![giannisdag](https://avatars.githubusercontent.com/u/2151129?v=4)](https://github.com/giannisdag "giannisdag (1 commits)")[![itzen](https://avatars.githubusercontent.com/u/8614041?v=4)](https://github.com/itzen "itzen (1 commits)")[![kurrata-bit](https://avatars.githubusercontent.com/u/234404493?v=4)](https://github.com/kurrata-bit "kurrata-bit (1 commits)")[![larnu](https://avatars.githubusercontent.com/u/1165592?v=4)](https://github.com/larnu "larnu (1 commits)")[![lukascernydis](https://avatars.githubusercontent.com/u/3111717?v=4)](https://github.com/lukascernydis "lukascernydis (1 commits)")[![RichWeber](https://avatars.githubusercontent.com/u/1702252?v=4)](https://github.com/RichWeber "RichWeber (1 commits)")[![udokmeci](https://avatars.githubusercontent.com/u/8896298?v=4)](https://github.com/udokmeci "udokmeci (1 commits)")[![1darvesh](https://avatars.githubusercontent.com/u/5379762?v=4)](https://github.com/1darvesh "1darvesh (1 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (1 commits)")[![depesr](https://avatars.githubusercontent.com/u/9600300?v=4)](https://github.com/depesr "depesr (1 commits)")[![edgardmessias](https://avatars.githubusercontent.com/u/1530997?v=4)](https://github.com/edgardmessias "edgardmessias (1 commits)")[![fallingdust](https://avatars.githubusercontent.com/u/809582?v=4)](https://github.com/fallingdust "fallingdust (1 commits)")[![gael-wogenstahl](https://avatars.githubusercontent.com/u/5624541?v=4)](https://github.com/gael-wogenstahl "gael-wogenstahl (1 commits)")

---

Tags

pluginjquerydateyii2extensionwidgetformpickerselect2

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M59](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M190](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M94](/packages/kartik-v-yii2-widget-fileinput)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

814.9M18](/packages/kartik-v-yii2-widget-depdrop)

PHPackages © 2026

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