mayflower/holiday

This package is abandoned and no longer maintained. No replacement package was suggested.

A library to calculate holidays

Package info

github.com/Mayflower/libholiday

Issues

pkg:composer/mayflower/holiday

Statistics

Installs: 301 030

Dependents: 3

Suggesters: 0

Stars: 29

0.7.0 2016-05-03 04:33 UTC

Requires

  • php: >= 5.4

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

LGPL-3.0+ 62733d8be2236638e8bfd68b5de17fb90f686fca

  • David Soria Parra <david.soria_parra.woop@mayflower.de>

This package is not auto-updated.

Last update: 2020-01-24 15:25:32 UTC


README

👁 Build Status

A library to calculate holidays.

Supported countries and states

  • America
  • Germany and all constituent states
  • Sweden
  • Netherlands

Installation

composer require mayflower/holiday

Usage

<?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'))