PHPackages                             derakht/filament-jalali - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. derakht/filament-jalali

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

derakht/filament-jalali
=======================

Add Jalali/Shamsi support for FilamentPHP

V1.1.1(1y ago)020MITJavaScriptPHP ~8.1|~8.2.0|~8.3|~8.4

Since Mar 15Pushed 1y agoCompare

[ Source](https://github.com/FarhadShirmardi/filament-jalali)[ Packagist](https://packagist.org/packages/derakht/filament-jalali)[ Docs](https://github.com/ariaieboy/filament-jalali)[ RSS](/packages/derakht-filament-jalali/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

Filament Jalali/Shamsi Support
==============================

[](#filament-jalalishamsi-support)

[![Ariaieboy Filament Jalali](https://camo.githubusercontent.com/5b0ab89844a377175c4e431b8325ed0a514bf11e6c5ecd80c39a519ae1cd3562/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f417269616965626f792f46696c616d656e742d4a616c616c692e7376673f6272616e643d6c61726176656c)](https://camo.githubusercontent.com/5b0ab89844a377175c4e431b8325ed0a514bf11e6c5ecd80c39a519ae1cd3562/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f417269616965626f792f46696c616d656e742d4a616c616c692e7376673f6272616e643d6c61726176656c)[![Latest Version on Packagist](https://camo.githubusercontent.com/6ba36655334a72834121dc3bb4076de031c0591caaf790f0b0ecb73b65be85f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617269616965626f792f66696c616d656e742d6a616c616c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ariaieboy/filament-jalali)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/6acdc64279af673a58bf352ac71f73fd5bf54b611d606b830c88fb05ef422225/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617269616965626f792f66696c616d656e742d6a616c616c692f7068702d63732d66697865722e796d6c3f6c6162656c3d7374796c696e67)](https://camo.githubusercontent.com/6acdc64279af673a58bf352ac71f73fd5bf54b611d606b830c88fb05ef422225/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617269616965626f792f66696c616d656e742d6a616c616c692f7068702d63732d66697865722e796d6c3f6c6162656c3d7374796c696e67)[![Total Downloads](https://camo.githubusercontent.com/09038cca068e6e94ae23bf6b221137a5eeb7062140295e0f216650c09eab67b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617269616965626f792f66696c616d656e742d6a616c616c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ariaieboy/filament-jalali)

This package adds Jalali/Shamsi support to filament v3.

We have Jalali/Shamsi support for `DatePicker`,`DateTimePicker`,`TextColumn`, `TextEntry` and `DateConstraint`.

It's a replacement for [ariaieboy/filament-jalali-datetime](https://github.com/ariaieboy/filament-jalali-datetime) and [ariaieboy/filament-jalali-datetimepicker](https://github.com/ariaieboy/filament-jalali-datetimepicker). For Upgaring guide check [here](README.md#upgrading)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ariaieboy/filament-jalali
```

Usage
-----

[](#usage)

```
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\DateTimePicker;

DatePicker::make('birth_date')->jalali();
DateTimePicker::make('birth_date')->jalali(weekdaysShort: true);
```

For more information check the default [DateTimePicker Docs](https://filamentphp.com/docs/3.x/forms/fields#date-time-picker)

```
use Filament\Tables\Columns\TextColumn;

TextColumn::make('created_at')->jalaliDate();
TextColumn::make('created_at')->jalaliDateTime();
```

For more information check the default [TextColumn Docs](https://filamentphp.com/docs/3.x/tables/columns/text)

```
use Filament\Infolists\Components\TextEntry;

TextEntry::make('created_at')->jalaliDate();
TextEntry::make('created_at')->jalaliDateTime();
TextEntry::make('created_at')->since()->jalaliDateTooltip();
TextEntry::make('created_at')->since()->jalaliDateTimeTooltip();
```

For more information check the default [TextEntry Docs](https://filamentphp.com/docs/3.x/infolists/entries/text)

```
use Filament\Tables\Filters\QueryBuilder\Constraints\DateConstraint;
use Ariaieboy\FilamentJalali\DateConstraint\Operators\IsJalaliAfterOperator;
use Ariaieboy\FilamentJalali\DateConstraint\Operators\IsJalaliBeforeOperator;
use Ariaieboy\FilamentJalali\DateConstraint\Operators\IsJalaliDateOperator;
use Ariaieboy\FilamentJalali\DateConstraint\Operators\IsJalaliYearOperator;

DateConstraint::make('created_at')->jalali();
//Or you can use any operations that you like
DateConstraint::make('created_at')->operators([
        IsJalaliAfterOperator::class,
        IsJalaliBeforeOperator::class,
        IsJalaliDateOperator::class,
        IsJalaliYearOperator::class
]);
```

For more information check the default [DateConstraint Docs](https://filamentphp.com/docs/3.x/tables/filters/query-builder#date-constraints)

> We don't support `IsJalaliMonthOperator` since there is not and efficient way to query georgian month according to the jalali/shamsi month.

> Fill free to open a PR that adds `IsJalaliMonthOperator` if you have an algorithm to convert jalali/shamsi month to georgian month.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Upgrading
---------

[](#upgrading)

### from `ariaieboy/filament-jalali-datetimepicker`

[](#from-ariaieboyfilament-jalali-datetimepicker)

If you are using the V3 of the jalali-datetimepicker you don't need to do anything just replace `ariaieboy/filament-jalali-datetimepicker` with `ariaieboy/filament-jalali`

### from `ariaieboy/filament-jalali-datetime`

[](#from-ariaieboyfilament-jalali-datetime)

If you use the `jalaliDate()` and `jalaliDateTime()` on the `TextColumn` you can upgrade without any problem.

But if you use the `JalaliDateTimeColumn` you need to change it to `TextColumn` and convert `dateTime() to jalaliDateTime()` and `date() to jalaliDate()`

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ariaieboy](https://github.com/ariaieboy)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance45

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% 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 ~0 days

Total

2

Last Release

424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6677a47496249d72c35547a86cd392ea278c0fa9c28c7370659242f38fc4ca8?d=identicon)[FarhadShirmardi](/maintainers/FarhadShirmardi)

---

Top Contributors

[![ariaieboy](https://avatars.githubusercontent.com/u/15873972?v=4)](https://github.com/ariaieboy "ariaieboy (100 commits)")[![FarhadShirmardi](https://avatars.githubusercontent.com/u/26744507?v=4)](https://github.com/FarhadShirmardi "FarhadShirmardi (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

laravelariaieboyfilament-jalali-datetimepickerfilament-jalali-supportfilament-shamsi-calendarfilament-shamsi-support

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/derakht-filament-jalali/health.svg)

```
[![Health](https://phpackages.com/badges/derakht-filament-jalali/health.svg)](https://phpackages.com/packages/derakht-filament-jalali)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[ariaieboy/filament-jalali

Add Jalali/Shamsi support for FilamentPHP

3819.2k5](/packages/ariaieboy-filament-jalali)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)

PHPackages © 2026

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