altruja/workday

There is no license information available for the latest version (0.1.1) of this package.

Maintainers

Package info

github.com/Altruja/workday

pkg:composer/altruja/workday

Statistics

Installs: 853

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.1.1 2014-03-20 16:59 UTC

This package is not auto-updated.

Last update: 2026-03-14 22:44:32 UTC


README

A simple tool to find the next work day.

Usage:

$dayToCheck = new DateTime();

$workday = new \Altruja\Workday($dayToCheck);
$workday->next();

$nextWorkDay = $workday->date;

Different region (Germany is default)

$workday = new \Altruja\Workday($dayToCheck, 'Bavaria');

Include legal workdays commonly considered holidays

$workday = new \Altruja\Workday($dayToCheck, 'Bavaria', false);

Three workdays after the next workday

$workday = new \Altruja\Workday($dayToCheck);

$workday->next(3);

$thirdWorkDay = $workday->date;

Note: If the supplied day already is a work day, that day is considered the next work day.