PHPackages                             yii2-extensions/time-picker - 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. yii2-extensions/time-picker

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

yii2-extensions/time-picker
===========================

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

1.0.1(1y ago)024—0%BSD-3-ClausePHP

Since Nov 5Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

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.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/yii2-extensions/time-picker/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

```
composer require yii2-extensions/time-picker "^1.0"

```

or add

```
"yii2-extensions/time-picker": "*"

```

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

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

[](#release-changes)

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

Usage
-----

[](#usage)

```
use Yii2\Extensions\TimePicker\TimePicker;

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

or in a form

```
