jbtcd/holidays

A simple PHP library to work with all the holidays in the world.

Fund package maintenance!
jbtcd
paypal.me/jbtcd

v0.1.1-alpha 2021-04-05 21:25 UTC

This package is auto-updated.

Last update: 2022-07-07 20:44:40 UTC


README

Stand With Ukraine

The holiday project 🏖️

A simple PHP library to work with all the holidays in the world.

GitHub stars GitHub issues Build Status license packagist downloads php version

Installation

To install, use composer:

$ composer require jbtcd/holidays

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

$holiday = new \jbtcd\Holidays\Holiday('DEU');

var_dump($holiday->isHoliday(new \DateTime('start of year')));

Testing

PHPUnit:

./vendor/bin/phpunit --testdox tests --coverage-text

License

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