PHPackages                             armincms/nova-opening-hours - 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. armincms/nova-opening-hours

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

armincms/nova-opening-hours
===========================

A Nova wrapper field for the spatie opening hours.

0.3.0(5y ago)4881↓93.3%1[1 issues](https://github.com/armincms/nova-opening-hours/issues)1MITVuePHP &gt;=7.1.0

Since Nov 19Pushed 5y agoCompare

[ Source](https://github.com/armincms/nova-opening-hours)[ Packagist](https://packagist.org/packages/armincms/nova-opening-hours)[ RSS](/packages/armincms-nova-opening-hours/feed)WikiDiscussions master Synced today

READMEChangelog (6)DependenciesVersions (7)Used By (1)

nova-opening-hours
==================

[](#nova-opening-hours)

A Nova field for the Spatie opening hours.

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

[](#installation)

```
composer require armincms/nova-opening-hours

```

Usage
-----

[](#usage)

At the first, In the Laravel model should cast the attribute to the Array then In the Nova resources follow the below:

```
use Armincms\Fields\OpeningHours;

...
OpeningHours::make('Name')
...

```

Restriction
===========

[](#restriction)

You can use the `restrictTo` to restrict the user to enter specific hours, like the below:

```
OpeningHours::make(__('Opening Hours'), '_sfore_opening_hours_')
            ->restrictTo([
              'first restriction' => 'Label',
              'second restriction' => 'Label',
              ...
            ])

```

This restriction will apply to all weekdays. if you want to restrict some days use the following:

```
OpeningHours::make(__('Opening Hours'), '_sfore_opening_hours_')
            ->restrictionOnSunday([
              'first restriction' => 'Label',
              'second restriction' => 'Label',
              ...
            ])
            ->restrictionOnWednesday([
              'first restriction' => 'Label',
              'second restriction' => 'Label',
              ...
            ])

```

Storing
=======

[](#storing)

This package stores the opening hours in the following format:

```
$openingHours = [
    'sunday' => [
      [
        'data' => 'your data',
        'hours' => 'your hours', // 00:08-10:00
      ],
      [
        'data' => 'your second data',
        'hours' => 'your second hours', // 11:00-20:00
      ]
    ],

    'friday' => [
      [
        'data' => 'your data',
        'hours' => 'your hours', // 00:08-10:00
      ],
      [
        'data' => 'your second data',
        'hours' => 'your second hours', // 11:00-20:00
      ]
    ],
];

```

[![](/opening-hours.gif)](/opening-hours.gif)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Total

6

Last Release

2034d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/188c6af1615930311adb86de0f0f1e9241b3306d8f7680c385caa6aa0810ca48?d=identicon)[zareismail](/maintainers/zareismail)

---

Top Contributors

[![zareismail](https://avatars.githubusercontent.com/u/23401061?v=4)](https://github.com/zareismail "zareismail (10 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/armincms-nova-opening-hours/health.svg)

```
[![Health](https://phpackages.com/badges/armincms-nova-opening-hours/health.svg)](https://phpackages.com/packages/armincms-nova-opening-hours)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3453.7M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

52178.7k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17186.3k1](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1198.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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