palmabit / holidays
holidays
0.0.2
2015-11-19 09:55 UTC
Requires
- php: >=5.4.0
- nesbot/carbon: ^1.21
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is not auto-updated.
Last update: 2024-11-13 18:19:05 UTC
README
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.