PHPackages                             shayanys/iranian-date-picker - 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. shayanys/iranian-date-picker

ActiveFilament-plugin

shayanys/iranian-date-picker
============================

v1.1.2(3y ago)242254[1 issues](https://github.com/shayan-yousefi/IranianDatePicker-filament/issues)MITPHPPHP ^8.1

Since Mar 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shayan-yousefi/IranianDatePicker-filament)[ Packagist](https://packagist.org/packages/shayanys/iranian-date-picker)[ RSS](/packages/shayanys-iranian-date-picker/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

[![IraninaDatePicker-filament license](https://camo.githubusercontent.com/51c4b6f7e968bb7202777e91ddf6015c555bf9ed0ceab6b165c47c2e047a2ce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686179616e3130302f4972616e696e61446174655069636b65722d66696c616d656e74)](https://camo.githubusercontent.com/51c4b6f7e968bb7202777e91ddf6015c555bf9ed0ceab6b165c47c2e047a2ce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686179616e3130302f4972616e696e61446174655069636b65722d66696c616d656e74)[![IraninaDatePicker-filament size](https://camo.githubusercontent.com/8c5e21edbdaab900bd96032950ef1d4252111b19ab17310591cf74c0e033a5bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f73686179616e3130302f4972616e696e61446174655069636b65722d66696c616d656e74)](https://camo.githubusercontent.com/8c5e21edbdaab900bd96032950ef1d4252111b19ab17310591cf74c0e033a5bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f73686179616e3130302f4972616e696e61446174655069636b65722d66696c616d656e74)[![IraninaDatePicker-filament version](https://camo.githubusercontent.com/09f2d56feab7f94a4ee61c4e853408df2d30f6ef0c9c87d684e92dcbe56e5a9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686179616e79732f6972616e69616e2d646174652d7069636b6572)](https://packagist.org/packages/shayanys/iranian-date-picker)

The IranianDatePicker-filament package was created to add the Iranian calendar field to the filament

thanks to [babakhani](https://github.com/babakhani "babakhani") for the wonderful [pwt.datepicker](https://github.com/babakhani/pwt.datepicker "pwt.datepicker") javascript package.

Instalation
-----------

[](#instalation)

```
composer require shayanys/iranian-date-picker
```

Usage
-----

[](#usage)

in your form schema write:

```
IranianDatePickerField::make('date')
```

Methods
=======

[](#methods)

The methods you can use in IranianDatePicker are as follows

minDate
-------

[](#mindate)

```
IranianDatePickerField::make('date')->minDate(now());
```

This method receives a carbon date to determine the minimum date that the user can choose.

maxDate
-------

[](#maxdate)

```
IranianDatePickerField::make('date')->maxDate(now()->addDays(10));
```

This method receives a carbon date to determine the maximum date that the user can choose.

format
------

[](#format)

```
IranianDatePickerField::make('date')->format('Y-m-d');
```

The format method is used to determine the date format (the date is stored in the database with the same format).

displayFormat
-------------

[](#displayformat)

```
IranianDatePickerField::make('date')->displayFormat('Y/m/d');

// Use with the format method
IranianDatePickerField::make('date')->format('Y-m-d')->displayFormat('Y/m/d');
```

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
-----------

[](#withouttime)

```
IranianDatePickerField::make('date')->withoutTime();
```

The withoutTime method loads the date picker without the time picker

withoutSeconds
--------------

[](#withoutseconds)

```
IranianDatePickerField::make('date')->withoutSeconds();
```

The withoutSeconds method loads the date picker and time picker without seconds

hourStep, minuteStep, and secondStep
------------------------------------

[](#hourstep-minutestep-and-secondstep)

```
IranianDatePickerField::make('date')->hourStep(2);
```

```
IranianDatePickerField::make('date')->minuteStep(2);
```

```
IranianDatePickerField::make('date')->secondStep(2);
```

You may also customize the input interval for increasing the hours / minutes / seconds using the hoursStep() , minutesStep() or secondsStep();

disabledDates
-------------

[](#disableddates)

```
IranianDatePickerField::make('date')->disabledDates(['2023-03-17','2023-03-18','1402-01-01']);
```

The disabledDates method disables the dates passed with an array in the date selector (you can also enter a Iranian date).

disabledDates
-------------

[](#disableddates-1)

```
IranianDatePickerField::make('date')->disabledWeekDays([0,1,2]); // this will disable saturday, sunday and monday

/*
 * saturday => 0
 * sunday => 1
 * monday => 2
 * tuesday => 3
 * wednesday => 4
 * thursday => 5
 * friday => 6
 */
```

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
------

[](#column)

to show date in Iranian format use this column

```
IranianDatePickerColumn::make('date');

//you can use it with format method
IranianDatePickerColumn::make('date')->format('Y/m/d');
```

CHANGELOG
---------

[](#changelog)

you can see change logs in [CHANGELOG.md](https://github.com/shayan100/IranianDatePicker-filament/blob/1.x/CHANGELOG.md)

license
-------

[](#license)

Freely distributable under the terms of the [MIT](https://opensource.org/licenses/MIT "MIT") license.

---

 [ ![فونت ایران‌سنس](https://camo.githubusercontent.com/81b23cdfdd6309a4f9aca3e14497007e4139a0770d835909cc6fc14c292af5e6/68747470733a2f2f666f6e746972616e2e636f6d2f73746f726167652f75706c6f6164732f696d616765732f323032332f312f6261646765312d6d696e444e3134556a2e706e67)
 This package legally
 uses IranSans font.](https://fontiran.com/license/PY0845KQ)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

9

Last Release

1110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87db215a0c00bdbbfdcb42a51a46fddc5cf9127c63b687b1fe649f23dceb4185?d=identicon)[shayanys](/maintainers/shayanys)

---

Top Contributors

[![shayan-yousefi](https://avatars.githubusercontent.com/u/19957980?v=4)](https://github.com/shayan-yousefi "shayan-yousefi (54 commits)")

---

Tags

datedatetimefilamentfilament-formiranian-calendarlaravel-package

### Embed Badge

![Health badge](/badges/shayanys-iranian-date-picker/health.svg)

```
[![Health](https://phpackages.com/badges/shayanys-iranian-date-picker/health.svg)](https://phpackages.com/packages/shayanys-iranian-date-picker)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

320392.1k17](/packages/codewithdennis-filament-select-tree)[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3722.7M2.4k](/packages/filament-filament)[filament/tables

Easily add beautiful tables to any Livewire component.

3523.6M100](/packages/filament-tables)[filament/actions

Easily add beautiful action modals to any Livewire component.

1220.8M36](/packages/filament-actions)[ralphjsmit/laravel-filament-components

A collection of reusable components for Filament.

10972.2k2](/packages/ralphjsmit-laravel-filament-components)[rawilk/filament-password-input

Enhanced password input component for filament.

52232.4k3](/packages/rawilk-filament-password-input)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
