PHPackages                             simialbi/yii2-widget-yohours - 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. simialbi/yii2-widget-yohours

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

simialbi/yii2-widget-yohours
============================

yii2 widget to create opening\_hours data

1.0.1(3y ago)11.1k2MITPHPPHP &gt;=7.4

Since May 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/simialbi/yii2-widget-yohours)[ Packagist](https://packagist.org/packages/simialbi/yii2-widget-yohours)[ RSS](/packages/simialbi-yii2-widget-yohours/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (18)Used By (0)

yii2-widget-yohours
===================

[](#yii2-widget-yohours)

This extension integrates an [OSM compatible Opening Hours widget](https://wiki.openstreetmap.org/wiki/Key:opening_hours)into yii2 framework. It's based on [Adrien Pavie](https://github.com/PanierAvide)'s [YoHours Application](http://projets.pavie.info/yohours/).

A live demo is available at [projets.pavie.info/yohours](http://projets.pavie.info/yohours/).

Resources
---------

[](#resources)

- [jQuery yohours plugin](https://github.com/simialbi/jquery-yohours)
- [yii2](https://github.com/yiisoft/yii2) framework
- [bootstrap 3 | 4 | 5](https://getbootstrap.com)

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

[](#installation)

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

Either run

```
$ php composer.phar require --prefer-dist simialbi/yii2-widget-yohours

```

or add

```
"simialbi/yii2-widget-yohours": "*"

```

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

Example Usage
-------------

[](#example-usage)

To include an yohours input field widget call the widget like this:

```
