PHPackages                             sinensia/localizeddatetime - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. sinensia/localizeddatetime

ActiveNova-field[Localization &amp; i18n](/categories/localization)

sinensia/localizeddatetime
==========================

A custom localized DateTime field for Laravel Nova 4 (Laravel 10+ compatible).

v0.1.3(1y ago)124MITVuePHP ^8.1

Since Mar 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/SINENSIA/nova-localized-datetime)[ Packagist](https://packagist.org/packages/sinensia/localizeddatetime)[ RSS](/packages/sinensia-localizeddatetime/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Nova Localized DateTime Field
=============================

[](#nova-localized-datetime-field)

📅 A **custom DateTime field for Laravel Nova 4** with localization support.
This package extends **VueDatePicker** to provide a flexible and user-friendly **date selection** experience.

***TODO:Test in Nova 5***

📌 Installation
--------------

[](#-installation)

**Step 1:** Add the package to your Laravel Nova project:

```
composer require sinensia/localizeddatetime
```

Step 2: Install Dependencies
----------------------------

[](#step-2-install-dependencies)

Before installing the package, ensure your system has the required PHP extensions **bcmath** and **zip**.

### 1️⃣ Install Required PHP Extensions

[](#1️⃣-install-required-php-extensions)

For **Ubuntu/Debian** users, run:

```
sudo apt update
sudo apt install php-bcmath php-zip -y
```

### 2️⃣ Verify That Extensions Are Enabled

[](#2️⃣-verify-that-extensions-are-enabled)

Check if the extensions are active (for example, in Apache):

```
php -m | grep -E "bcmath|zip"
```

If any extension is missing, you may need to restart PHP:

```
sudo systemctl restart apache2  # For Apache users
sudo systemctl restart php-fpm  # For Nginx with PHP-FPM
```

🛠️ Usage
--------

[](#️-usage)

In your **Nova Resource**:

```
use Sinensia\Localizeddatetime\LocalizeddateTime;

public function fields(NovaRequest $request)
{
    return [
        Localizeddatetime::make('Fecha Inicio')
            ->withMeta([
                'locale' => auth()->user()->locale, // You can use the authenticated user locale
                'firstDayOfWeek' => 1,  // Monday
                'dateFormat' => 'dd/MM/yyyy HH:mm',
                'enableTimePicker' => true,
                'range' => true, // Allow a date range setup
                'showShortValue' => false, // Index field can show short format i.e. 11/02 or full 11/02/2025 14:00
                'presetRanges' => [
                    ['label' => 'Hoy', 'range' => [now(), now()]],
                    ['label' => 'Este mes', 'range' => [now()->startOfMonth(), now()->endOfMonth()]],
                    ['label' => 'El mes pasado', 'range' => [now()->subMonth()->startOfMonth(), now()->subMonth()->endOfMonth()]],
                    ['label' => 'Este trimestre', 'range' => [now()->startOfQuarter(), now()->endOfQuarter()]],
                    ['label' => 'Este año', 'range' => [now()->startOfYear(), now()->endOfYear()], 'slot' => 'yearly'],
                ],
            ])
            ->rules('required', 'date'),
    ];
}
```

🔧 Available Meta Options
------------------------

[](#-available-meta-options)

OptionDescription`locale`User's preferred locale (`ca`, `es`, `en`)`firstDayOfWeek`First day of the week (1 = Monday, 0 = Sunday)`dateFormat`Example: `dd/MM/yyyy HH:mm``enableTimePicker``true`: Enables time selection, `false`: Date only`range``true`: Allows date range selection, `false`: Single date`showShortValue``true`: Shows only day/month, `false`: Shows full date`presetRanges`Predefined date ranges for quick selection🏗️ Compatibility
----------------

[](#️-compatibility)

- ✅ **Laravel Nova 4+**
- ✅ **Vue 3**
- ✅ **VueDatePicker 3.x**
- ✅ **Date-FNS for localization**

📜 Credits
---------

[](#-credits)

- [Laravel Nova](https://nova.laravel.com/)
- [Vue DatePicker](https://vue3datepicker.com/)
- [Date-FNS](https://date-fns.org/)

Developed by **Sinensia**
[GitHub Repository](https://github.com/sinensia/nova-localized-datetime)

📄 License
---------

[](#-license)

This package is open-source and released under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

4

Last Release

384d ago

PHP version history (2 changes)v0.1PHP ^7.3|^8.0

v0.1.2PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![SINENSIA](https://avatars.githubusercontent.com/u/19147008?v=4)](https://github.com/SINENSIA "SINENSIA (3 commits)")

---

Tags

laravellocalizationdatetimedatenovanova-fieldsinensia

### Embed Badge

![Health badge](/badges/sinensia-localizeddatetime/health.svg)

```
[![Health](https://phpackages.com/badges/sinensia-localizeddatetime/health.svg)](https://phpackages.com/packages/sinensia-localizeddatetime)
```

###  Alternatives

[jenssegers/date

A date library to help you work with dates in different languages

1.8k11.2M80](/packages/jenssegers-date)[outl1ne/nova-translatable

A laravel-translatable extension for Laravel Nova.

203416.9k8](/packages/outl1ne-nova-translatable)[miladr/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in Laravel 4 applications, based on Jalali (Shamsi) DateTime class. This Package is based on a Laravel 3 bundle sallar/laravel-jdate by Sallar Kaboli.

479.6k2](/packages/miladr-jalali)[aloko/nova-persian-datepicker

Persian Datepicker for Laravel Nova.

203.5k](/packages/aloko-nova-persian-datepicker)

PHPackages © 2026

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