PHPackages                             aloko/nova-persian-datepicker - 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. aloko/nova-persian-datepicker

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

aloko/nova-persian-datepicker
=============================

Persian Datepicker for Laravel Nova.

v0.1.1(7y ago)203.5k↑25%3[19 PRs](https://github.com/mustafaaloko/nova-persian-datepicker/pulls)MITVuePHP &gt;=7.1.0

Since Aug 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mustafaaloko/nova-persian-datepicker)[ Packagist](https://packagist.org/packages/aloko/nova-persian-datepicker)[ RSS](/packages/aloko-nova-persian-datepicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (22)Used By (0)

Laravel Nova Persian Datepicker
===============================

[](#laravel-nova-persian-datepicker)

Description
-----------

[](#description)

This package adds flexibility to work with Persian/Jalali dates in Laravel Nova resources. It provides two fields, `PersianDate` and `PersianDateTime`.

Installation and Usage
----------------------

[](#installation-and-usage)

You may require this package using composer:

```
composer require aloko/nova-persian-datepicker

```

To use these fields, you add the following to your resource's `fields()` method:

```
use Aloko\PersianDatepicker\PersianDate;
use Aloko\PersianDatepicker\PersianDateTime;

PersianDate::make('date_of_birth'), // For date fields
PersianDateTime::make('check_in') // For datetime fields
```

**NOTE:** Please don't forget to cast your `date` and `datetime` fields in your model class as explained in [Attribute Casting](https://laravel.com/docs/eloquent-mutators#attribute-casting) in Laravel Docs, otherwise these fields will throw casting error.

How it Works
------------

[](#how-it-works)

Under the hood, this package uses the awesome [Babakhani Datepicker](http://babakhani.github.io/PersianWebToolkit/doc/datepicker/) library. Below screenshots are some samples of how this package works.

### Screenshots

[](#screenshots)

#### Persian Date Field

[](#persian-date-field)

[![](https://github.com/mustafaaloko/nova-persian-datepicker/raw/master/screenshots/persian-date.png?raw=true)](https://github.com/mustafaaloko/nova-persian-datepicker/blob/master/screenshots/persian-date.png?raw=true)

You can also select gregorian date using the same datepicker.

[![](https://github.com/mustafaaloko/nova-persian-datepicker/raw/master/screenshots/persian-date-in-en.png?raw=true)](https://github.com/mustafaaloko/nova-persian-datepicker/blob/master/screenshots/persian-date-in-en.png?raw=true)

#### Persian Date Time Field

[](#persian-date-time-field)

The datetime field will also have a time picker.

[![](https://github.com/mustafaaloko/nova-persian-datepicker/raw/master/screenshots/persian-datepicker.png?raw=true)](https://github.com/mustafaaloko/nova-persian-datepicker/blob/master/screenshots/persian-datepicker.png?raw=true)

Methods
-------

[](#methods)

You can use `format()` method as below to alter the way dates are displayed. Please note that `format` string must match the standard explained in Babakhani Persian Date [format docs](http://babakhani.github.io/PersianWebToolkit/doc/persian-date#format).

```
PersianDate::make('date_of_birth')->format('YYYY-MM'), // This will only print year and month
PersianDateTime::make('check_in')->format('hh:mm') // This will only show hours and minutes
```

To Do
-----

[](#to-do)

Below are items that needs to or will be improved in future.

- Better locale support
- Make it possible to accept almost all datepicker options available on PHP side for customization

Special Thanks
--------------

[](#special-thanks)

- Reza Babakhani

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.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

2808d ago

### Community

Maintainers

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

---

Top Contributors

[![mustafaaloko](https://avatars.githubusercontent.com/u/4721735?v=4)](https://github.com/mustafaaloko "mustafaaloko (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

laraveldatetimedatedatepickernovapersian

### Embed Badge

![Health badge](/badges/aloko-nova-persian-datepicker/health.svg)

```
[![Health](https://phpackages.com/badges/aloko-nova-persian-datepicker/health.svg)](https://phpackages.com/packages/aloko-nova-persian-datepicker)
```

###  Alternatives

[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9201.2M45](/packages/morilog-jalali)[hekmatinasser/verta

This Package helps developers to work with Jalali Datetime class for Laravel Framework PHP

657530.5k27](/packages/hekmatinasser-verta)

PHPackages © 2026

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