PHP package to determine whether a given date is a public holiday in the UK.
Public holiday data is from gov.uk
Date::isFirstWorkingDayOfTheMonth(Carbon::today());
Date::isHoliday(Carbon::today());
Date::isWorkingDay(Carbon::today())
Date::nextWorkingDay();
Date::previousWorkingDay();
The default region is 'England and Wales'. To change it use PublicHolidays::setRegion()
:
PublicHolidays::setRegion('scotland');
PublicHolidays::setRegion('northern-ireland');