Download the PHP package kartik-v/yii2-date-range without Composer
On this page you can find all versions of the php package kartik-v/yii2-date-range. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kartik-v/yii2-date-range
More information about kartik-v/yii2-date-range
Files in kartik-v/yii2-date-range
Package yii2-date-range
Short Description An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.
License BSD-3-Clause
Homepage https://github.com/kartik-v/yii2-date-range
Informations about the package yii2-date-range
yii2-date-range
An advanced date range picker input for Yii Framework 2 based on dangrossman/bootstrap-daterangepicker plugin. The date range picker widget is styled for Bootstrap 3.x and 4.x versions and creates a dropdown menu from which a user can select a range of dates. If the plugin is invoked with no options, it will present two calendars to choose a start and end date from. Optionally, you can provide a list of date ranges the user can select from instead of choosing dates from the calendars. If attached to a text input, the selected dates will be inserted into the text box. Otherwise, you can provide a custom callback function to receive the selection.
Additional enhancements added for this widget (by Krajee):
- allows ability to work with Bootstrap input group addons and set the picker position to point at the input-group-addon icon.
- enhanced translation features using yii i18n message files.
- automatically convert format from PHP Date/time format to Moment.js Date/time format.
- automatically trigger change of base field to enforce Yii ActiveField validation
- ability to set the widget to display a preset dropdown of date options within a container (and hidden input).
- style the container options as per your need using templates
- automatically disable date-range based on disabled/readonly options.
Demo
You can see detailed documentation on usage of the extension.
Release Changes
Refer the CHANGE LOG for details of various releases.
Installation
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
or add
to the section of your composer.json
file.
Usage
DateRangePicker
or using seperate min/max attributes on model
DateRangeBehavior
License
yii2-date-range is released under the BSD-3-Clause License. See the bundled LICENSE.md
for details.