Skip to content

Instantly share code, notes, and snippets.

View Antaru's full-sized avatar

Oscar Karlsson Antaru

View GitHub Profile
@Antaru
Antaru / holidays.php
Last active August 30, 2024 07:49
Class to determine Swedish holidays based on year
<?php
class Holidays {
private $dates;
private $enum_dates = array(
'NEW_YEARS_DAY' => array('Nyårsdagen'),
'EPIPHANY' => array('Trettondedag jul', 'Trettondagen'),
'HOLY_THURSDAY' => array('Skärtorsdagen'),
'GOOD_FRIDAY' => array('Långfredag'),