PHPackages                             hirehq/laravel-bank-holidays - 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. hirehq/laravel-bank-holidays

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

hirehq/laravel-bank-holidays
============================

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

v1.0.0(3mo ago)0207MITPHPPHP ^8.2CI passing

Since Apr 2Pushed 3mo agoCompare

[ Source](https://github.com/hirehq/laravel-bank-holidays)[ Packagist](https://packagist.org/packages/hirehq/laravel-bank-holidays)[ Docs](https://github.com/hirehq/laravel-bank-holidays)[ RSS](/packages/hirehq-laravel-bank-holidays/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Laravel Bank Holidays
=====================

[](#laravel-bank-holidays)

[![Tests](https://camo.githubusercontent.com/9c18589b73a7b053119d1c3b43eac35fd23e1228df0d8dc251eda1d583a447fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6869726568712f6c61726176656c2d62616e6b2d686f6c69646179732f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/hirehq/laravel-bank-holidays/actions/workflows/tests.yml)

`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
--------

[](#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
------------

[](#installation)

```
composer require hirehq/laravel-bank-holidays
```

Publish Configuration
---------------------

[](#publish-configuration)

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

This publishes `config/bank_holidays.php` to your application.

Configuration
-------------

[](#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
-------------

[](#compatibility)

Package VersionLaravelPHPcurrent11.x, 12.x, 13.x8.2, 8.3, 8.4, 8.5Usage
-----

[](#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
-------

[](#testing)

From the package directory:

```
composer install
composer test
composer refactor
```

Contributing
------------

[](#contributing)

Please review [`CONTRIBUTING.md`](CONTRIBUTING.md) before opening a pull request.

Security
--------

[](#security)

Please report vulnerabilities according to [`SECURITY.md`](SECURITY.md). Sensitive security reports can be sent to `security@hirehq.co.uk`.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6da5518948f1bcfed31fca0b9b97d08f1b0f8a788d756dff44042e45cc942bb7?d=identicon)[sequeloliver](/maintainers/sequeloliver)

---

Top Contributors

[![oliver-sadler](https://avatars.githubusercontent.com/u/6792747?v=4)](https://github.com/oliver-sadler "oliver-sadler (19 commits)")

---

Tags

laravelcarbonbank holidaysukworking days

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/hirehq-laravel-bank-holidays/health.svg)

```
[![Health](https://phpackages.com/badges/hirehq-laravel-bank-holidays/health.svg)](https://phpackages.com/packages/hirehq-laravel-bank-holidays)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M145](/packages/laravel-mcp)[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

985.4k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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