PHPackages                             cgsmith/yii2-flatpickr-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. cgsmith/yii2-flatpickr-widget

ActiveYii2-extension

cgsmith/yii2-flatpickr-widget
=============================

flatpickr (DatePicker) widget for Yii2.

1.1.0(1y ago)51.1k↓50%1[1 issues](https://github.com/cgsmith/yii2-flatpickr-widget/issues)BSD-3-ClausePHP

Since Dec 6Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Flatpickr JS Widget for Yii2
============================

[](#flatpickr-js-widget-for-yii2)

[![Latest Stable Version](https://camo.githubusercontent.com/2b0fa6aa73bceec74e5d618c3e8f64eed447d7eb5cc38918d23acbcc5a7e625a/68747470733a2f2f706f7365722e707567782e6f72672f6367736d6974682f796969322d666c61747069636b722d7769646765742f76)](https://packagist.org/packages/cgsmith/yii2-flatpickr-widget)[![Total Downloads](https://camo.githubusercontent.com/d40f3159efa1cc92e0f2ada06937ce2ad54d83456a227579a81d8457f49ed9f6/68747470733a2f2f706f7365722e707567782e6f72672f6367736d6974682f796969322d666c61747069636b722d7769646765742f646f776e6c6f616473)](https://packagist.org/packages/cgsmith/yii2-flatpickr-widget)[![Latest Unstable Version](https://camo.githubusercontent.com/05ef4e27b8ec0b4655653e7fe594ab744d29945e00999feaf14823f32b8bf41b/68747470733a2f2f706f7365722e707567782e6f72672f6367736d6974682f796969322d666c61747069636b722d7769646765742f762f756e737461626c65)](https://packagist.org/packages/cgsmith/yii2-flatpickr-widget)[![License](https://camo.githubusercontent.com/8d49e2ae9bd1f2ef9fbbf8f80e248d38cee3a67dcef1d302e0a9c42049050dc5/68747470733a2f2f706f7365722e707567782e6f72672f6367736d6974682f796969322d666c61747069636b722d7769646765742f6c6963656e7365)](https://packagist.org/packages/cgsmith/yii2-flatpickr-widget)

Renders a [flatpickr Datepicker plugin](https://flatpickr.js.org/).

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

[](#installation)

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

Either run

```
$ composer require cgsmith/yii2-flatpickr-widget:~1.1
```

or add

```
"cgsmith/yii2-flatpickr-widget": "~1.1"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

The widget renders the flatpickr onto your form.

***Example of use with a form***
Use the widget by setting up its `model` and `attribute`.

```
