PHPackages                             kartik-v/yii2-widget-timepicker - 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. kartik-v/yii2-widget-timepicker

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

kartik-v/yii2-widget-timepicker
===============================

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

v1.0.5(4y ago)404.9M—5.9%1214BSD-3-ClausePHP

Since Nov 8Pushed 4y ago2 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (7)Used By (14)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-widget-timepicker ---

 [![Donate](https://camo.githubusercontent.com/0336bc43d88554a3f2d6c74dddf312bc2c65c2eacca70d83ae40f5567098d00e/68747470733a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal") [![kartikv](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/kartikv "Buy me a coffee")
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-widget-timepicker------------------)

[![Stable Version](https://camo.githubusercontent.com/a358355cca528dfc003ed9c9307b5f6564861ec14338c03e0f222dbed3c2d365/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)[![Untable Version](https://camo.githubusercontent.com/b64c9fd1549645017e5006fb54cb8d376ccf8ce4f1869a50bf58904313cf93e5/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)[![License](https://camo.githubusercontent.com/93b8816d2bb0a6b700a9b7a5cf187d477f4303f8bb121bf471adcff6825dc4ce/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)[![Total Downloads](https://camo.githubusercontent.com/e8757904f84db7b3922864f0714441c29116cfdf92b624573c83c1d34dc2e581/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)[![Monthly Downloads](https://camo.githubusercontent.com/47dd48d4724c373389df506ac69f46ab1eba5db6138a41c76656c0c3530bb14b/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)[![Daily Downloads](https://camo.githubusercontent.com/e1028c7333b3331020a617e7f9f768fb0c1092c5a0803058702cddd5fd2ab4d5/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d74696d657069636b65722f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-widget-timepicker)

The TimePicker widget allows you to easily select a time for a text input using your mouse or keyboards arrow keys. The widget is a wrapper enhancement of the [TimePicker plugin](https://github.com/rendom/bootstrap-3-timepicker) by rendom forked from [jdewit's TimePicker](https://github.com/jdewit/bootstrap-timepicker). This widget as used here has been specially enhanced for Yii framework 2.0 and Bootstrap 3. With release v1.0.4, the extension has been enhanced to support Bootstrap 4.x version.

> NOTE: This extension is a sub repo split of [yii2-widgets](https://github.com/kartik-v/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](http://demos.krajee.com/widgets).

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-timepicker/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 kartik-v/yii2-widget-timepicker "*"

```

or add

```
"kartik-v/yii2-widget-timepicker": "*"

```

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

Release Changes
---------------

[](#release-changes)

> NOTE: Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-timepicker/blob/master/CHANGE.md) for details on changes to various releases.

Demo
----

[](#demo)

You can refer detailed [documentation and demos](http://demos.krajee.com/widget-details/timepicker) on usage of the extension.

Usage
-----

[](#usage)

```
use kartik\time\TimePicker;

// usage without model
echo 'Start Time';
echo TimePicker::widget([
    'name' => 'start_time',
    'value' => '11:24 AM',
    'pluginOptions' => [
        'showSeconds' => true
    ]
]);
```

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity67

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

Every ~509 days

Recently: every ~529 days

Total

6

Last Release

1664d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3592619?v=4)[Kartik Visweswaran](/maintainers/kartik-v)[@kartik-v](https://github.com/kartik-v)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (17 commits)")

---

Tags

plugintimejqueryyii2extensionwidgetbootstrapformpicker

### Embed Badge

![Health badge](/badges/kartik-v-yii2-widget-timepicker/health.svg)

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

###  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-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)[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)

PHPackages © 2026

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