2017 © Pedro Peláez
 

library not-tomorrow

PHP library to calculate the next working day. You can also check if a given date is a holiday or if the next day is on weekend.

image

thiagomarini/not-tomorrow

PHP library to calculate the next working day. You can also check if a given date is a holiday or if the next day is on weekend.

  • Tuesday, April 4, 2017
  • by thiagomarini
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

not-tomorrow

CircleCI License: MIT, (*1)

What for?

PHP library to calculate the next working day. Handy if you work with delivery only on weekdays., (*2)

You can also check if a given date is a holiday or if the next day is on weekend., (*3)

Requirements

Relies on handlers to work

Right now it can only calculate workdays for:, (*4)

  • England and Whales :gb:

Feel free to contribute and send more handlers via pull requests. Handlers need to implement AnnualHolidays interface., (*5)

Basic Usage

<?php

use NotTomorrow\Calendar;

// Create a calendar class with a handler
$calendar = new Calendar(new EnglandWhalesHolidays());

// Check if next day of a given date is on weekend 
$calendar->isNextDayOnWeekend(new \DateTime('2017-04-01'));

// Check if a given date is a holiday
$calendar->isHoliday(new \DateTime('2017-12-25'));

//Find the next working day
$calendar->findNextWorkingDay($friday);

License

MIT, (*6)

The Versions

04/04 2017

dev-master

9999999-dev

PHP library to calculate the next working day. You can also check if a given date is a holiday or if the next day is on weekend.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

next day holiday find working weekend

04/04 2017

1.0.1

1.0.1.0

Library to calculate the next working day and list and check holiday dates.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

next day holiday find working weekend