library holiday
A library to calculate holidays
mayflower/holiday
A library to calculate holidays
- Tuesday, February 20, 2018
- by dsp
- Repository
- 52 Watchers
- 20 Stars
- 61,047 Installations
- PHP
- 3 Dependents
- 0 Suggesters
- 13 Forks
- 2 Open issues
- 7 Versions
- 9 % Grown
libholiday
, (*1)
A library to calculate holidays., (*2)
Supported countries and states, (*3)
- America
- Germany and all constituent states
- Sweden
- Netherlands
Installation, (*4)
composer require mayflower/holiday
, (*5)
Usage, (*6)
<?php
require_once __DIR__ . '/vendor/autoload.php';
$holidays = new Holiday\Germany();
// Returns array of Holiday objects, if any between the given dates.
$holidays->between(
new \DateTime('01.01.2018'),
new \DateTime('31.12.2018')
);
// isHoliday calls ->between with the given date to both parameters.
$holidays->isHoliday(new \DateTime('01.05.2018'))
dev-master
9999999-dev
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Requires
-
php >= 5.4
-
ext-calendar *
The Development Requires
by
David Soria Parra
0.7.0
0.7.0.0
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Requires
The Development Requires
by
David Soria Parra
0.6.2
0.6.2.0
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Requires
The Development Requires
by
David Soria Parra
0.6.1
0.6.1.0
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Development Requires
by
David Soria Parra
0.6.0
0.6.0.0
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Development Requires
by
David Soria Parra
0.5.1
0.5.1.0
A library to calculate holidays
Sources
Download
LGPL-3.0+
The Development Requires
by
David Soria Parra