Encapsuleur Yii2 amélioré pour le plug-in bootstrap datetimepicker

Encapsuleur Yii2 amélioré pour le plug-in bootstrap datetimepicker


Installer Démo

Encapsuleur Yii2 amélioré pour le plug-in bootstrap datetimepicker

Heure de publication: jeudi 25 juin 2015 (il y a 5 ans)

Créé par: Visweswaran Kartik

Catégorie: Autre

Version actuelle: dev-master
16 déc. 2019 12:37:15 (il y a 6 mois)

Packagist: kartik-v/yii2-widget-datetimepicker

: https://github.com/kartik-v/yii2-widget-datetimepicker

: 2030814 (Par mois: 41769)

Type: Компонент

Encapsuleur Yii2 amélioré pour le plug-in bootstrap datetimepicker

Krajee Logo

Stable Version Untable Version License Total Downloads Monthly Downloads Daily Downloads

The DateTimePicker widget is a Yii 2 wrapper for the Bootstrap DateTimePicker plugin with various enhancements. The plugin is a fork of the DateTimePicker plugin by @eternicode and adds the time functionality. The widget is similar to the DateTimePicker widget in most aspects, except that it adds the time functionality and does not support ranges. The widget is specially styled for Yii framework 2.0 and Bootstrap 3 and allows graceful degradation to a normal HTML text input, if the browser does not support JQuery. The widget supports these markups:

  • Simple Input Markup
  • Component Markup - Addon Prepended
  • Component Markup - Addon Appended
  • Inline / Embedded Markup
  • Solo Button Markup

NOTE: This extension is a sub repo split of yii2-widgets. The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of yii2-widgets.


The preferred way to install this extension is through composer. 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.

To install, either run

$ php composer.phar require kartik-v/yii2-widget-datetimepicker "*"

or add

"kartik-v/yii2-widget-datetimepicker": "*"

to the require section of your composer.json file.

Release Changes

NOTE: Refer the CHANGE LOG for details on changes to various releases.


You can refer detailed documentation and demos on usage of the extension.


use kartik\datetime\DateTimePicker;

echo '<label>Start Date/Time</label>';
echo DateTimePicker::widget([
    'name' => 'datetime_10',
    'options' => ['placeholder' => 'Select operating time ...'],
    'convertFormat' => true,
    'pluginOptions' => [
        'format' => 'd-M-Y g:i A',
        'startDate' => '01-Mar-2014 12:00 AM',
        'todayHighlight' => true


yii2-widget-datetimepicker is released under the BSD-3-Clause License. See the bundled LICENSE.md for details.

Tous les commentaires (0)
Sans commentaires

dev-master — 16 déc. 2019 12:37:15 (il y a 6 mois)

v1.4.9 — 29 mai 2019 15:28:51 (il y a un an)

v1.4.8 — 9 oct. 2018 14:39:13 (il y a un an)

v1.4.7 — 29 août 2018 14:42:11 (il y a un an)

v1.4.6 — 25 août 2018 18:09:46 (il y a un an)

v1.4.5 — 21 août 2018 21:49:35 (il y a un an)

v1.4.4 — 8 juin 2017 08:53:28 (il y a 3 ans)

v1.4.3 — 19 janv. 2017 18:04:42 (il y a 3 ans)

v1.4.2 — 10 janv. 2016 15:18:38 (il y a 4 ans)

v1.4.1 — 4 nov. 2015 21:46:05 (il y a 4 ans)

v1.4.0 — 25 janv. 2015 19:36:55 (il y a 5 ans)

v1.3.0 — 12 janv. 2015 15:28:59 (il y a 5 ans)

v1.2.0 — 4 déc. 2014 12:58:45 (il y a 5 ans)

v1.1.0 — 28 nov. 2014 22:20:18 (il y a 5 ans)

v1.0.0 — 8 nov. 2014 21:48:07 (il y a 5 ans)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"kartik-v/yii2-widget-datetimepicker": "*"

Запустите обновление зависимостей

Читать про обнолвение SkeekS CMS