Download the PHP package ixnode/php-public-holiday without Composer
On this page you can find all versions of the php package ixnode/php-public-holiday. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-public-holiday
PHP Public Holiday
This PHP package automatically generates holidays for a given year, considering both federal states and the country. It provides an easy-to-use interface to retrieve public holidays based on specific regions, ensuring accurate and up-to-date holiday information for all supported areas. Movable public holidays such as Easter Monday are calculated automatically using the PHP function
easter_date()
. Static public holidays are permanently stored.
1. Usage
1.1 Get the public holidays of Germany from the state of Saxony
2. Supported countries
Code | Country | States | Support |
---|---|---|---|
AT |
Austria | Burgenland (B ), Carinthia (K ), Lower Austria (N ), Upper Austria (O ), Salzburg (S ), Styria (ST ), Tyrol (T ), Vorarlberg (V ), Vienna (W ) |
fully supported :heavy_check_mark: |
CH |
Switzerland | Canton of Zurich (ZH ), Canton of Bern (BE ), Canton of Lucerne (LU ), Canton of Uri (UR ), Canton of Schwyz (SZ ), Canton of Obwalden (OW ), Canton of Nidwalden (NW ), Canton of Glarus (GL ), Canton of Zug (ZG ), Canton of Fribourg (FR ), Canton of Solothurn (SO ), Canton of Basel-Stadt (BS ), Canton of Basel-Landschaft (BL ), Canton of Schaffhausen (SH ), Canton of Appenzell Ausserrhoden (AR ), Canton of Appenzell Innerrhoden (AI ), Canton of St. Gallen (SG ), Canton of the Grisons (GR ), Canton of Aargau (AG ), Canton of Thurgau (TG ), Canton of Ticino (TI ), Canton of Vaud (VD ), Canton of Valais (VS ), Canton of Neuchâtel (NE ), Canton of Geneva (GE ), Canton of Jura (JU ) |
fully supported :heavy_check_mark: |
DE |
Germany | Brandenburg (BB ), Berlin (BE ), Baden Württemberg (BW ), Bavaria (BY ), Bremen (HB ), Hesse (HE ), Hamburg (HH ), Mecklenburg-Western Pomerania (MV ), Lower Saxony (NI ), Nordrhein-Westfalen (NW ), Rhineland-Palatinate (RP ), Schleswig-Holstein (SH ), Saarland (SL ), Saxony (SN ), Sachsen-Anhalt (ST ), Thuringia (TH ) |
fully supported :heavy_check_mark: |
3. Supported languages
Code | Language | Support |
---|---|---|
cz |
Czech | fully supported :heavy_check_mark: |
de |
German | fully supported :heavy_check_mark: |
en |
English | fully supported :heavy_check_mark: |
es |
Spanish | fully supported :heavy_check_mark: |
fr |
French | fully supported :heavy_check_mark: |
hr |
Croatian | fully supported :heavy_check_mark: |
it |
Italian | fully supported :heavy_check_mark: |
pl |
Polish | fully supported :heavy_check_mark: |
sv |
Swedish | fully supported :heavy_check_mark: |
4. Installation
5. Command line tool
Used to quickly check the public holidays.
development mode:
or within your composer project:
Output locales (--locale
)
Available options:
cz
de
(default)en
es
fr
hr
it
pl
sv
Output formats (--format
)
Available options:
text
(default)json
csv
JSON
CSV
6. Library development
7. License
This library is licensed under the MIT License - see the LICENSE file for details.
8. Author
- Björn Hempel [email protected]
- https://www.hempel.li/