laravel-enso/holidays

Holiday calendar management for Laravel Enso

Maintainers

Package info

github.com/laravel-enso/holidays

pkg:composer/laravel-enso/holidays

Statistics

Installs: 80

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.4 2026-04-28 11:39 UTC

This package is auto-updated.

Last update: 2026-04-28 11:45:10 UTC


README

License Stable Downloads PHP Issues Merge Requests

Description

Holidays manages annual holiday calendars and working-day overrides for Laravel Enso.

The package exposes endpoints for listing available years, showing all holidays for a selected year, and toggling individual days between holiday and working-day status.

It is a small administrative package intended to support date-aware business rules in Enso applications.

Installation

Install the package:

composer require laravel-enso/holidays

Run the package migrations:

php artisan migrate

Features

  • Year index endpoint for available holiday calendars.
  • Holiday list endpoint grouped by year.
  • Toggle endpoint for marking a holiday as a working day or restoring it.
  • API resources for normalized year and holiday payloads.

Usage

The package mounts its routes under holidays.*.

Each holiday resource exposes:

  • formatted date
  • numeric month
  • name
  • description
  • isWorkingDay

API

HTTP routes

  • GET api/holidays
  • GET api/holidays/{year}
  • PATCH api/holidays/{holiday}/toggle

Models

  • LaravelEnso\\Holidays\\Models\\Holiday
  • LaravelEnso\\Holidays\\Models\\HolidayYear

Depends On

The package does not require additional Enso backend packages beyond the host Laravel application.

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!