PHPackages                             jino5577/yii2-date-range-picker - 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. jino5577/yii2-date-range-picker

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

jino5577/yii2-date-range-picker
===============================

Yii 2 date range picker input based on Dan Grossman daterangepicker plugin.

1.0.0(10y ago)4101.3k↓22.6%5BSD-3-ClausePHP

Since Oct 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/jino5577/yii2-date-range-picker)[ Packagist](https://packagist.org/packages/jino5577/yii2-date-range-picker)[ Docs](https://github.com/jino5577/yii2-date-range-picker)[ RSS](/packages/jino5577-yii2-date-range-picker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

yii2-date-range-picker
======================

[](#yii2-date-range-picker)

Date range picker input for Yii Framework 2 based on [Dan Grossman's bootstrap-daterangepicker](http://www.daterangepicker.com/).

Features:

- MaskedInput can be used to manually input date range.
- Since version 2.0.8 [daterangepicker](http://www.daterangepicker.com/) plugin can accept empty initial values. To do this, set plugin option `autoUpdateInput` to `false` and use default `callback` option. See for details.

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

[](#installation)

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

To install, either run

```
$ php composer.phar require jino5577/yii2-date-range-picker "*"

```

or add

```
"jino5577/yii2-date-range-picker": "*"

```

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

Usage
-----

[](#usage)

```
use jino5577\daterangepicker\DateRangePicker;

echo DateRangePicker::widget([
    'model'     => $model,
    'attribute' => 'dateRange',

    // Optional. Used for calendar localization.
    // IF `null` (default), default moment.js language will be used.
    'locale'    => 'ru-RU';
    // Daterange plugin options. Default is `null`.
    // See http://www.daterangepicker.com/#options
    'pluginOptions' => [
        /* ... */
        'autoUpdateInput' => false,
    ],
    // Optional. If maskOptions is set, MaskedInput will be used
    // instead of TextInput. Default is `null`.
    'maskOptions' => [
        'mask' => '99/99/9999 - 99/99/9999',
    ],
    // Optional. Input control options,
    // default is `['class' => 'form-control']`.
    'options' => [
        /* ... */
    ],
    // Optional. Widget template, default is `{input}`.
    // The special tag `{input}` will be replaced with the form input.
    'template' => '

            {input}

    '
    ],
    // Optional. Javascript callback to be passed to the
    // plugin constructor. By default, updates the input
    // and triggers `change` event.
    'callback' => 'function() { /* ... */ }';
]);
```

License
-------

[](#license)

BSD 3-Clause License. Please see bundled `LICENSE.md` file for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

3868d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eb164ed190d8ebd60c12f6f9a344567dc5bdab00fce200e33621ebbdc37713f?d=identicon)[jino5577](/maintainers/jino5577)

---

Top Contributors

[![jino5577](https://avatars.githubusercontent.com/u/1880860?v=4)](https://github.com/jino5577 "jino5577 (3 commits)")[![pawelkania](https://avatars.githubusercontent.com/u/9013316?v=4)](https://github.com/pawelkania "pawelkania (1 commits)")

---

Tags

timedateyii2extensionwidgetbootstraprangebootstrap 3date-range

### Embed Badge

![Health badge](/badges/jino5577-yii2-date-range-picker/health.svg)

```
[![Health](https://phpackages.com/badges/jino5577-yii2-date-range-picker/health.svg)](https://phpackages.com/packages/jino5577-yii2-date-range-picker)
```

###  Alternatives

[kartik-v/yii2-date-range

An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.

894.4M42](/packages/kartik-v-yii2-date-range)[kartik-v/yii2-field-range

Easily manage Yii 2 ActiveField ranges (from/to) with Bootstrap 3 addons markup and more

232.1M26](/packages/kartik-v-yii2-field-range)[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-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

433.8M13](/packages/kartik-v-yii2-sortable)[kartik-v/yii2-money

An advanced money mask input for Yii 2.0 based on jquery maskmoney plugin styled for Bootstrap 3.

29915.4k10](/packages/kartik-v-yii2-money)[kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

24660.4k2](/packages/kartik-v-yii2-sortable-input)

PHPackages © 2026

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