2017 © Pedro PelĂĄez
 

library swiss-holidays

Does this date is a holiday in these cantons ?

image

melba-ch/swiss-holidays

Does this date is a holiday in these cantons ?

  • Friday, July 21, 2017
  • by melba-ch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Swiss Holidays

Does this date is a holiday in these cantons ?, (*1)

Installation

Using Composer

You can use the composer package manager to install. Either run:, (*2)

$ php composer.phar require melba-ch/swiss-holidays "*"

or add:, (*3)

"melba-ch/swiss-holidays": "*"

to your composer.json file, (*4)

Manual Install

You can also manually install the API easily to your project. Just download the source ZIP and extract its content into your project., (*5)

Usage

Does this date is a holiday in these cantons, (*6)

use MelbaCH\SwissHolidays\SwissHolidays;

$date = new \DateTime("2018-4-1");
$holidays = SwissHolidays::isHoliday($date, ["VD", "SO", "BE"]);

Get holidays of the year in these cantons, (*7)

use MelbaCH\SwissHolidays\SwissHolidays;

$holidays = SwissHolidays::getHolidays("2019", ["TG", "ZH", "AG"]);

Cantons

List of Swiss cantons, (*8)

  • AG : Aargau
  • AI : Appenzell Innerrhoden
  • AR : Appenzell Ausserrhoden
  • BE : Bern
  • BL : Basel-Landschaft
  • BS : Basel-Stadt
  • FR : Fribourg
  • GE : Geneva
  • GL : Glarus
  • GR : GraubĂŒnden
  • JU : Jura
  • LU : Luzern
  • NE : NeuchĂątel
  • NW : Nidwalden
  • OW : Obwalden
  • SG : St. Gallen
  • SH : Schaffhausen
  • SO : Solothurn
  • SZ : Schwyz
  • TG : Thurgau
  • TI : Ticino
  • UR : Uri
  • VD : Vaud
  • VS : Valais
  • ZG : Zug
  • ZH : ZĂŒrich

Holidays

List of holidays, (*9)

  • New Year's Day : 1 January
  • St. Berchtold : 2 January
  • Epiphany : 6 January
  • Republic Day : 1 March
  • St Joseph's Day : 19 March
  • NĂ€felser Fahrt : 3 April
  • Palm Sunday : Easter Sunday - 7 days
  • Good Friday : Easter Sunday - 2 days
  • Easter Sunday : Easter Sunday
  • Easter Monday : Easter Sunday + 1 day
  • Labor Day : 1 May
  • Ascension : Easter Sunday + 39 days
  • Pentecost : Easter Sunday + 49 days
  • Whit Monday : Easter Sunday + 50 days
  • Corpus Christi : Easter Sunday + 60 days
  • FĂȘte d'IndĂ©pendance : 23 June
  • Saints Peter and Paul : 29 June
  • Swiss National Day : 1 August
  • Assumption : 15 August
  • JeĂ»ne genevois : Thursday after 1st Sunday in September
  • Federal Day of Thanksgiving, Repentance and Prayer : 3rd Sunday in September
  • Lundi du JeĂ»ne : Monday after 3rd Sunday in September
  • Saint Nicholas of FlĂŒe Day : 25 September
  • All Saints Day : 1 November
  • Immaculate Conception : 8 December
  • Christmas Day : 25 December
  • St Stephen's Day : 26 December
  • Restoration of the Republic : 31 December
  • New Year's Eve : 31 December

The Versions

21/07 2017

dev-master

9999999-dev

Does this date is a holiday in these cantons ?

  Sources   Download

21/07 2017

dev-stable

dev-stable

Does this date is a holiday in these cantons ?

  Sources   Download

21/07 2017

v1.0.2

1.0.2.0

Does this date is a holiday in these cantons ?

  Sources   Download

10/04 2017

1.0.1

1.0.1.0

Does this date is a holiday in these cantons ?

  Sources   Download

02/11 2016

1.0.0

1.0.0.0

Does this date is a holiday in these cantons ?

  Sources   Download