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

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

pcrt/yii2-datepicker
====================

Yii2-datepicker widget based on TempusDomini

0.9.3(6y ago)01.1k↓82.4%1BSD-3-ClauseJavaScript

Since Feb 7Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Yii2-Datepicker
===============

[](#yii2-datepicker)

[Daterangepicker](http://www.daterangepicker.com/) gives you a customizable daterangepicker with support for multidate, time, localization and many other highly used options.

\##Installation

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require pcrt/yii2-datepicker "*"

```

or add

```
"pcrt/yii2-datepicker": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, modify your application configuration to include:

```
use pcrt\widgets\datepicker\Datepicker:

// with \yii\bootstrap\ActiveForm;
echo $form
    ->field($model, 'attribute')
    ->widget(
        Datepicker::class,
        [
          'clientOptions' => [
            'singleDatePicker' => true,
            'showDropdowns' => true,
          ]
        ]
    );

// as widget
echo Datepicker::widget([
    'clientOptions' => [
      'showDropdowns' => true,
    ]
]);
```

License
-------

[](#license)

Yii2-Datepicker is released under the BSD-3 License. See the bundled `LICENSE.md` for details.

Enjoy!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

2

Last Release

2349d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f6ad6343f484e9e2ee1c530ec7c4067ad974f540cff580dce786b8953f3fdd1?d=identicon)[protocolli](/maintainers/protocolli)

---

Top Contributors

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

---

Tags

helperyii2themeassetstempusdomini

### Embed Badge

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

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

PHPackages © 2026

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