Download the PHP package ariaieboy/filament-jalali-datetimepicker without Composer
On this page you can find all versions of the php package ariaieboy/filament-jalali-datetimepicker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariaieboy/filament-jalali-datetimepicker
More information about ariaieboy/filament-jalali-datetimepicker
Files in ariaieboy/filament-jalali-datetimepicker
Package filament-jalali-datetimepicker
Short Description This is my package filament-jalali-datetimepicker
License MIT
Homepage https://github.com/ariaieboy/filament-jalali-datetimepicker
Informations about the package filament-jalali-datetimepicker
This package is no longer maintained please upgrade to ariaieboy/filament-jalali
Filament Jalali Date Time Picker Field
This package adds jalali support to filament v3 DatePicker and DateTimePicker.
For Filament v2 you can use the version 1 of this package.
Installation
You can install the package via composer:
Usage
for more information check the default DateTimePicker Docs : https://filamentphp.com/docs/2.x/forms/fields#date-time-picker
Changelog
Please see CHANGELOG for more information on what has changed recently.
Upgrading
v2 to v3
-
step 1: Change the package version in your
composer.jsonto^3and run the composer update command: - step 2 : If you using the
JalaliDateTimePickerorJalaliDatePickerclasses you should remove those and use the default Filament DatePicker class.- For more info check the step 2 of the v1 to v2 upgrade guide.
- step 3 (optional) : in V3 we introduced 2 new lang files called
monthsanddaysusing these 2 file you can customize the months and days labels.- To customize the lang files you can use this command:
php artisan vendor:publish --tag=filament-jalali-datetimepicker-translations
- backward compatibility checks:
- in V3 we changed some default values if you want to customize these values, you should use the methods after the
jalalimethod.- The default day label is
longto change this you should passtrueas the firstjalali(weekdaysShort: true)argument. - We changed the default start of the week to
saturday - the default format is changed to
Y-m-dandY-m-d H:i:sfordatePickeranddateTimePicker
- The default day label is
- We changed the underlying package that provide jalali compatibility for dayjs to
@calidy/dayjs-calendarsystems - In V3 we only support
laravel >= 11andphp >= 8.2
- in V3 we changed some default values if you want to customize these values, you should use the methods after the
v1 to v2
-
step 1:Change the package version in your
composer.jsonto^2and run the composer update command: -
step 2 (optional):
You can change
jalaliDatePickerandjalaliDateTimePickerto the defaultDatePickerandDateTimePickerand then usejalali()method to convert a datepicker to jalali format For example:
The old format will work in v2 but we might remove it in the next major versions.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- ariaieboy
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-jalali-datetimepicker with dependencies
spatie/laravel-package-tools Version ^1.13.5
illuminate/contracts Version ^11
filament/filament Version ^3