A handy collection of international Illuminate\Support\Carbon
date helpers
- isNewYearsDay
- isGoodFriday
- isEasterSunday
- isAllSaintsDay
- isChristmasDay
- isNewYearsEve
- isMlkJrDay
- isPresidentsDay
- isMemorialDay
- isIndependenceDay
- isLaborDay
- isColumbusDay
- isVeteransDay
- isAmericanThanksgiving
- isFamilyDay
- isVictoriaDay
- isCanadaDay
- isCivicHoliday
- isLabourDay
- isCanadianThanksgiving
- isRemembranceDay
- isBoxingDay
- Algeria 🇩🇿
- Brazil 🇧🇷
- Egypt 🇪🇬
- France 🇫🇷
- Germany 🇩🇪
- India 🇮🇳
- Indonesia 🇮🇩
- Italy 🇮🇹
- Kenya 🇰🇪
- Netherlands 🇳🇱
- Sweden 🇸🇪
- Ukraine 🇺🇦
- Zambia 🇿🇲
composer require dansoppelsa/laravel-carbon-macros
<?php
use Illuminate\Support\Carbon;
$day = Carbon::parse('2020-12-25');
$day->isChristmasDay();
// true
$day->isCanadaDay();
// false
$day->isNewYearsDay();
// false