PHPackages                             kovalenkojuls/yii2-widget-combodate - 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. kovalenkojuls/yii2-widget-combodate

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

kovalenkojuls/yii2-widget-combodate
===================================

Wrapper of jQuery plugin Combodate (https://github.com/vitalets/combodate)

v1.0(9y ago)319.6k↓40%1[1 issues](https://github.com/kovalenkojuls/yii2-widget-combodate/issues)JavaScript

Since Sep 11Pushed 9y ago1 watchersCompare

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

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

yii2-widget-combodate
=====================

[](#yii2-widget-combodate)

Wrapper of jQuery plugin Combodate ()

- Simple Input
- Many options
- Many templates

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/kartik-v/yii2-widget-datepicker/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

To install, either run

```
$ php composer.phar require kovalenkojuls/yii2-widget-combodate "*"

```

or add

```
"kovalenkojuls/yii2-widget-combodate": "*"

```

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

Demo
----

[](#demo)

You can refer detailed [demos](http://vitalets.github.io/combodate/)

Usage
-----

[](#usage)

```
use kovalenkojuls\date\CombodateWidget;

// usage without model
echo 'Check Date';
echo CombodateWidget::widget([
	'name' => 'check_date',
	'options' => [
               'language'       => 'ru',
               'data-format'    => 'DD.MM.YYYY',
               'data-template'  => 'D MMMM YYYY',
               'customClass'    => 'form-control'
           ]
]);

//.......................................................................

// usage model
$form = ActiveForm::begin();
echo $form->field($model, 'birthday')->widget(CombodateWidget::className(),
       [
           'value'   => $model->birthday ? $model->birthday : '',
           'options' => [
               'language'       => 'ru',
               'data-format'    => 'DD.MM.YYYY',
               'data-template'  => 'D MMMM YYYY',
               'customClass'    => 'form-control'
           ]
       ])
```

Required parameters
-------------------

[](#required-parameters)

NameTypeExampleDescriptionlanguagestring'ru', 'fr', 'en'All language look at yii2-widget-combodate/assets/js/moment/locale/data-formatstring'DD-MM-YYYY', 'DD-MM-YYYY HH:mm', 'DD-MM-YYYY h:mm a'In this format date is stored in original input.data-templatestring'D MMM YYYY', 'DD / MM / YYYY HH : mm'In this format dropdowns are displayed.name (without model)string'data-input'Name of input.value (with model)stringIf data-format='DD-MM-YYYY', value='21-05-2016' (for example)Initial value.Optional parameters
-------------------

[](#optional-parameters)

NameTypeDefaultDescriptionvaluemixednullInitial value. Used as default value if not defined in .minYearint1970Minimum value in years dropdown.maxYearint2015Maximum value in years dropdown.yearDescendingbooltrueYears order.minuteStepint5Step of values in minutes dropdown.secondStepint1Step of values in seconds dropdown.firstItemstring'empty'What is shown in first item of all dropdown. Can be emptyerrorClassstringnullCss class applied if date is incorrect, e.g. Feb, 31. If null dropdowns appears in red border.customClassstringnullCss class applied to each dropdown.roundTimebooltrueWhether to round minutes and seconds if step &gt; 1.smartDaysboolfalseIf true - number of days depends on selected month and year.\##License

[MIT LICENSE](https://github.com/kovalenkojuls/yii2-widget-combodate/blob/master/LICENSE)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbc39013d06056005ca6ed644e45b93f0a2ffaa100d87c8394f9380ad08c57d5?d=identicon)[kovalenkojuls](/maintainers/kovalenkojuls)

---

Top Contributors

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

---

Tags

pluginjquerydateyii2extensionwidgetformpickerselect2

### Embed Badge

![Health badge](/badges/kovalenkojuls-yii2-widget-combodate/health.svg)

```
[![Health](https://phpackages.com/badges/kovalenkojuls-yii2-widget-combodate/health.svg)](https://phpackages.com/packages/kovalenkojuls-yii2-widget-combodate)
```

###  Alternatives

[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M60](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[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-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M191](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

814.9M18](/packages/kartik-v-yii2-widget-depdrop)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)

PHPackages © 2026

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