palmabit/holidays

0.0.2 2015-11-19 09:55 UTC

This package is not auto-updated.

Last update: 2024-05-01 15:39:33 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score

Country holidays days.

NOTE: Only italian holidays days are available for now.

Install

Via Composer

$ composer require palmabit/holidays

Usage

$year = 2025;

/*
 * Current year is set if no argument are passed.
 */
$holidays = new Palmabit\Holidays\Holidays($year);

or

Palmabit\Holidays\Holidays::setYear($year);
$holidays = new Holidays();

then

$holidays = new Palmabit\Holidays\Holidays(2016);

/*
 * return an array of all italian holidays
 */
 $it_holidays = $holidays
               ->setCountry('it_IT')
               ->all();

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

TODO

  • Improve coverage
  • Add other country holidays days

Security

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

Credits

License

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