PHPackages                             alirahimi/livewire-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. alirahimi/livewire-persian-datepicker

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

alirahimi/livewire-persian-datepicker
=====================================

The Persian Datepicker component for Laravel Livewire

v1.2.0(1y ago)275.0k↓42.6%4[3 issues](https://github.com/alirahimi818/livewire-persian-datepicker/issues)[2 PRs](https://github.com/alirahimi818/livewire-persian-datepicker/pulls)MITBladePHP ^8.0.2

Since Jan 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alirahimi818/livewire-persian-datepicker)[ Packagist](https://packagist.org/packages/alirahimi/livewire-persian-datepicker)[ RSS](/packages/alirahimi-livewire-persian-datepicker/feed)WikiDiscussions main Synced 1mo ago

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

[![Livewire Persian Datepicker](./resources/img/livewire-persian-datepicker.png)](./resources/img/livewire-persian-datepicker.png)

Livewire Persian Datepicker
---------------------------

[](#livewire-persian-datepicker)

This package is a Persian datepicker tool for Laravel 9/10/11.

This tool is made as a component for Livewire, which requires the following requirements:

Requirements
------------

[](#requirements)

- laravel +9.0
- livewire +2.5
- alpinejs +3.0.6
- tailwindcss +3.0.0
- jalali-moment +3.3.11

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

[](#installation)

To install the package, run the following code in the path of your project

```
composer require alirahimi/livewire-persian-datepicker

```

After installing with Composer, you need to publish the project files and install the npm requirements. With the following command, the mentioned tasks will be done automatically.

```
php artisan livewire:persian-datepicker

```

If you have already installed npm, the command above will automatically add the required items to package.json and reinstall npm. Otherwise, you have to manually install the necessary packages mentioned above.

After installing this package, a file called `persian-datepicker.blade.php` will be added to the `resources/views/components` folder and a file named `livewire-datepicker-datepicker.js` will be added to the `resources/js` folder of your project. If for any reason these two files are not created automatically, you can type the following command into the console:

```
php artisan vendor:publish --provider="AliRahimi\LivewirePersianDatepicker\LivewirePersianDatepickerServiceProvider" --tag="livewire-persian-datepicker" --force

```

Then you need to import the `resources/js/datepicker-datepicker.js` file in `resources/js/app.js`.

```
import './livewire-datepicker-datepicker';

```

Finally, the `resources/js/app.js` file should look like this:

```
import './bootstrap';
import './livewire-datepicker-datepicker';

import Alpine from 'alpinejs';  // Livewire < 3.0
window.Alpine = Alpine;         // Livewire < 3.0
Alpine.start();                 // Livewire < 3.0

```

And the `resources/css/app.css` file should look like this:

```
@tailwind base;
@tailwind components;
@tailwind utilities;

```

Now, if you are using webpack, enter the following command:

```
npm install
npm run dev

```

And if you use vite, enter the following command:

```
npm install
vite run dev

```

Tip: You need to call the created JavaScript and style files in your template:

```

        .
        .
        .

        @livewireStyles

        .
        .
        .

        @livewireScripts

```

How to use
----------

[](#how-to-use)

This component is easy to use. It has 9 entries that you can enter as you wish. I will give you an example below:

```

```

component property description:

PropertyRequiredDefaultDescriptionwirePropertyNameYesnullThe livewire property to which the information is sent after selecting the datelabelNonullinput labelcurrentViewNodayDefault Datepicker view (day, month, year).showFormatNojYYYY/jMM/jDDDate format for the selected date (Jalali date format =&gt; jalali-moment)returnFormatNoXDate format that is sent to the server (X = timestamp)requiredNofalseAdd red Star after labeldefaultDateNonullDatepicker default date (null = current date)minDateNonullDatepicker min date (null = without limit)maxDateNonullDatepicker max date (null = without limit)setNullInputNofalseCan set the default Datepicker to nullignoreWireNotrueIgnores livewire changes (recommended for time use)withTimeNofalseCan enable Datepicker time inputs (Hour Minute Second)withTimeSecondsNotrueCan disable Datepicker seconds inputPreview
-------

[](#preview)

[![Laravel Logo](./resources/img/livewire-persian-datepicker.gif)](./resources/img/livewire-persian-datepicker.gif)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance41

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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 ~96 days

Recently: every ~178 days

Total

9

Last Release

449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e1a0e1e646a8fc926dd3e035c2baa2d9728923b80a6c10cf116707135e86e6a?d=identicon)[alirahimi](/maintainers/alirahimi)

---

Top Contributors

[![alirahimi818](https://avatars.githubusercontent.com/u/20303078?v=4)](https://github.com/alirahimi818 "alirahimi818 (50 commits)")

### Embed Badge

![Health badge](/badges/alirahimi-livewire-persian-datepicker/health.svg)

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

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[jantinnerezo/livewire-alert

This package provides a simple alert utilities for your livewire components.

8041.2M20](/packages/jantinnerezo-livewire-alert)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/laravel-dashboard

A dashboard for Laravel

568156.1k94](/packages/spatie-laravel-dashboard)

PHPackages © 2026

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