devlabor/german-holidays

A PHP package to get german holidays from feiertage-api.de

1.1.0 2022-07-11 16:50 UTC

This package is auto-updated.

Last update: 2024-11-11 22:23:47 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require devlabor/german-holidays

Usage

use DevLabor\GermanHolidays\Holidays;

$holidays = Holidays::get();
$holidays = Holidays::get(2021, Holidays::STATE_SAXONY_ANHALT);

$federalKey = Holidays::resolveFederalStateName('Sachsen-Anhalt'); // returns ST
$holidays = Holidays::get(null, $federalKey);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email reichardt@devlabor.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.