New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hirehq/laravel-bank-holidays

UK bank holiday and working day Carbon macros backed by the GOV.UK bank holiday feed.
1,095

Larablocks Analysis

hirehq/laravel-bank-holidays works with Laravel 11, 12 and 13 (latest release v1.0.0, Apr 2, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Apr 2, 2026)
  • 331 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Apr 2, 2026.
  • 1 release in the last 12 months.
  • First released: Apr 2, 2026.
  • Monthly downloads: 331.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require hirehq/laravel-bank-holidays
Latest Version:v1.0.0
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Apr 2, 2026
Links: GitHub  ·  Packagist
Maintainer: sequeloliver

Laravel Bank Holidays

Tests

hirehq/laravel-bank-holidays adds UK-aware Carbon macros for working day calculations in Laravel applications, using the official GOV.UK bank holiday feed.

Features

  • Carbon macros for moving forward and backward by working day
  • Predicate helpers for working days and bank holidays
  • GOV.UK bank holiday feed integration with long-lived caching
  • Support for england-and-wales, scotland, and northern-ireland
  • Laravel package auto-discovery with publishable configuration

Installation

composer require hirehq/laravel-bank-holidays

Publish Configuration

php artisan vendor:publish --tag=bank-holidays-config

This publishes config/bank_holidays.php to your application.

Configuration

return [
    'division' => 'england-and-wales',
    'cache_days' => 31,
    'timezone' => null,
];
  • division: england-and-wales, scotland, or northern-ireland
  • cache_days: feed cache lifetime in days
  • timezone: optional override; falls back to app.timezone_display, then app.timezone

The package always uses the official GOV.UK bank holiday endpoint over HTTPS and validates the response structure before caching it.

Compatibility

Package Version Laravel PHP
current 11.x, 12.x, 13.x 8.2, 8.3, 8.4, 8.5

Usage

use Carbon\CarbonImmutable;

$date = CarbonImmutable::parse('2025-05-23');

$next = $date->addWorkingDay();
$previous = $date->subWorkingDay();

$isWorkingDay = $date->isWorkingDay();
$isBankHoliday = $date->isBankHoliday();

The package evaluates weekends and the configured UK bank holiday division when resolving working days.

Testing

From the package directory:

composer install
composer test
composer refactor

Contributing

Please review CONTRIBUTING.md before opening a pull request.

Security

Please report vulnerabilities according to SECURITY.md. Sensitive security reports can be sent to security@hirehq.co.uk.

Related Packages

kylekatarnls/laravel-carbon-2

Carbon 2 adapter for Laravel

1,309,359 63
flobbos/laravel-datable

A tiny Laravel package for easily switching localized dates

176 1
vasildakov/postcode

UK Postcode ValueObject

368,323 3
rtuin/carbon-normalizer

Normalizes to (and from) Carbon and native DateTime objects

49,050 2
ealore/progress

A generator of Bootstrap 3 progress bars based on dates

50 2

Version History

Version Released PHP Laravel License
v1.0.0 ^8.2 ^11.0|^12.0|^13.0 MIT