PHPackages                             karatae99/yii2-datepicker-thai-bs4 - 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. karatae99/yii2-datepicker-thai-bs4

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

karatae99/yii2-datepicker-thai-bs4
==================================

Bootstrap4 DatePicker Thai Buddhist-Era (B.E.) widget for Yii2.

1.0.0(3y ago)0218BSD-3-ClausePHP

Since Sep 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/karatae99/yii2-datepicker-thai-bs4)[ Packagist](https://packagist.org/packages/karatae99/yii2-datepicker-thai-bs4)[ RSS](/packages/karatae99-yii2-datepicker-thai-bs4/feed)WikiDiscussions main Synced 2d ago

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

Bootstrap4 DatePicker (Thai) Widget for Yii2
============================================

[](#bootstrap4-datepicker-thai-widget-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/d1473ec1697c6f2b7aaeb0714464584a52ba64c9637093a3aef773eada2be2ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6b61726174616539392f796969322d646174657069636b65722d746861692d6273342e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/karatae99/yii2-datepicker-thai-bs4)[![License](https://camo.githubusercontent.com/db05647503f0b0e5ccf300fe30c1bbf5de2517d0eb3bdec14c01738bcd6aa441/68747470733a2f2f706f7365722e707567782e6f72672f6b61726174616539392f796969322d646174657069636b65722d746861692d6273342f6c6963656e7365)](https://packagist.org/packages/karatae99/yii2-datepicker-thai-bs4)[![Total Downloads](https://camo.githubusercontent.com/372a87bc78c611f3f75d1ac1f7b3b59d994d02513ad98d316eaa60e6f03e90de/68747470733a2f2f706f7365722e707567782e6f72672f6b61726174616539392f796969322d646174657069636b65722d746861692d6273342f646f776e6c6f616473)](https://packagist.org/packages/karatae99/yii2-datepicker-thai-bs4)

This is Bootstrap4 thai Buddhist-Era (B.E.) datepicker for Yii2 extension.

Credits
-------

[](#credits)

2amigOS! Consulting Group for inspiration by [Bootstrap DatePicker Widget for Yii2](https://github.com/2amigos/yii2-date-picker-widget) and code examples.

Kartik Visweswaran for [Bootstrap 4.x styling](https://github.com/kartik-v/yii2-widget-datepicker).

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

[](#installation)

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

Either run

```
$ composer require karatae99/yii2-datepicker-thai-bs4 "~1.0"
```

or add

```
"karatae99/yii2-datepicker-thai-bs4" : "~1.0"
```

to the require section of your application's `composer.json` file.

Configuration
-------------

[](#configuration)

To set this up, add this section of code to your application params configuration file (e.g. common/config/params.php):

```
return [
    ...
    'bsVersion' => '4.x',
];
```

Icons for Bootstrap
-------------------

[](#icons-for-bootstrap)

Bootstrap 4.x does not include glyphicons or any other icons framework bundled with the library. To include font awesome assets on your page, include the following markup on the HEAD section of your view layout file, when bsVersion is set to 4.x. (e.g. frontend/views/layouts/main.php):

```

...

```

Usage
-----

[](#usage)

**DatePicker**

This widget renders a Bootstrap DatePicker input control. Best suitable for model with date string attribute.

***Example of use with a form***
There are two ways of using it, with an `ActiveForm` instance or as a widget setting up its `model` and `attribute`.

```

// with an ActiveForm instance
