Download the PHP package shayanys/iranian-date-picker without Composer
On this page you can find all versions of the php package shayanys/iranian-date-picker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package iranian-date-picker
The IranianDatePicker-filament package was created to add the Iranian calendar field to the filament
thanks to babakhani for the wonderful pwt.datepicker javascript package.
Instalation
Usage
in your form schema write:
Methods
The methods you can use in IranianDatePicker are as follows
minDate
This method receives a carbon date to determine the minimum date that the user can choose.
maxDate
This method receives a carbon date to determine the maximum date that the user can choose.
format
The format method is used to determine the date format (the date is stored in the database with the same format).
displayFormat
Maybe you want the format displayed in the field to be different from the format stored in the database, for this you can use the displayFormat method.
withoutTime
The withoutTime method loads the date picker without the time picker
withoutSeconds
The withoutSeconds method loads the date picker and time picker without seconds
hourStep, minuteStep, and secondStep
You may also customize the input interval for increasing the hours / minutes / seconds using the hoursStep() , minutesStep() or secondsStep();
disabledDates
The disabledDates method disables the dates passed with an array in the date selector (you can also enter a Iranian date).
disabledDates
this method will disable passed days in date picker and add rule to ensure selected date is not in disabled days by this method
column
to show date in Iranian format use this column
CHANGELOG
you can see change logs in CHANGELOG.md
license
Freely distributable under the terms of the MIT license.
This package legally
uses IranSans font.