Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (35 loc) · 1.21 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.21 KB

yii2-persian-datetimepicker

Jalali Datetime Picker for Bootstrap Yii2 Extension with Tempus Dominus Bootstrap 4 Datetime Picker

This extension provides a date, time or datetime picker widget for yii2 framework in Bootstrap 4 style. It's based on Tempus Dominus.

Resources

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require --prefer-dist faravaghi/yii2-persian-datetimepicker

or add

"faravaghi/yii2-persian-datetimepicker": "~1.0"

to the require section of your composer.json

Example Usage

To include datepicker instance in one of your pages, call the widget like this:

<?php

use faravaghi\persianDatetimePicker\DateTimePicker;

echo $form->field(
	$model,
	'birthday'
)
->widget(DateTimePicker::class, [
	'format' => 'mm/dd/yyyy',
	'type'   => DateTimePicker::TYPE_COMPONENT_APPEND
]);

?>

License

yii2-persian-datetimepicker is released under MIT license. See bundled LICENSE for details.