PHPackages                             hiqdev/yii2-daterangepicker - 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. hiqdev/yii2-daterangepicker

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

hiqdev/yii2-daterangepicker
===========================

Date Range Picker widget for Yii2

915.0k3[1 issues](https://github.com/hiqdev/yii2-daterangepicker/issues)PHP

Since Apr 3Pushed 2y ago3 watchersCompare

[ Source](https://github.com/hiqdev/yii2-daterangepicker)[ Packagist](https://packagist.org/packages/hiqdev/yii2-daterangepicker)[ RSS](/packages/hiqdev-yii2-daterangepicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Date Range Picker
======================

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

**Date Range Picker widget for Yii2**

[![Latest Stable Version](https://camo.githubusercontent.com/6db0d583952b1f4d81780cdd13e6628fa2aca97cc2abee3b5dc838c1c3641f7e/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d6461746572616e67657069636b65722f762f737461626c65)](https://packagist.org/packages/hiqdev/yii2-daterangepicker)[![Total Downloads](https://camo.githubusercontent.com/255f860ed7ca42e377173dec41f4a04109882c02395ad25db6894b381e9f710d/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d6461746572616e67657069636b65722f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/yii2-daterangepicker)[![Build Status](https://camo.githubusercontent.com/ea8318c64f944567ba7f3628213539e7d201dbea4bc60a7a950f55315c7a9e85/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f796969322d6461746572616e67657069636b65722e737667)](https://travis-ci.org/hiqdev/yii2-daterangepicker)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/b6d25992a1395a7e1ba866629e236c6d279d7d4f742154750915f60becafd525/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f796969322d6461746572616e67657069636b65722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-daterangepicker/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e993983ea77368044f00efad2437e65810b22fe05187770a2bd65bd753aeffa7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f796969322d6461746572616e67657069636b65722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-daterangepicker/)[![Dependency Status](https://camo.githubusercontent.com/8b8bdc572dde97bdb2ddbd36ec5a92d3964fce8ac7be2c7ae484858860b0c6ff/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a796969322d6461746572616e67657069636b65722f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:yii2-daterangepicker/dev-master)

This widget renders a DateRangePicker input control using [Bootstrap Date Range Picker](http://www.daterangepicker.com/) widget.

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

[](#installation)

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

Either run

```
php composer.phar require "hiqdev/yii2-daterangepicker"
```

or add

```
"hiqdev/yii2-daterangepicker": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

There are two ways of using this widget: with an `ActiveForm` instance or as a widget setting up its `model` and `attribute`. Additional [options](http://www.daterangepicker.com/#options) could be passed in `'clientOptions'` array.

### With an ActiveForm

[](#with-an-activeform)

```
