Holidays
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
, (*1)
Country holidays days., (*2)
NOTE: Only italian holidays days are available for now.
Install
Via Composer, (*3)
``` bash
$ composer require palmabit/holidays, (*4)
## Usage
``` php
$year = 2025;
/*
* Current year is set if no argument are passed.
*/
$holidays = new Palmabit\Holidays\Holidays($year);
or, (*5)
``` php
Palmabit\Holidays\Holidays::setYear($year);
$holidays = new Holidays();, (*6)
then
``` php
$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., (*7)
Testing
bash
$ composer test, (*8)
Contributing
Please see CONTRIBUTING for details., (*9)
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., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)