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

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

License

Notifications You must be signed in to change notification settings

faravaghi/yii2-persian-datetimepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published