PHP Classes
elePHPant
Icontem

PHP Next Working Day: Compute the next working day from today

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-11-05 (11 months ago) RSS 2.0 feedNot enough user ratingsTotal: 167 This week: 1All time: 8,066 This week: 1,047Up
Version License PHP version Categories
next-working-day 0.0.1GNU General Publi...5PHP 5, Time and Date
Description Author

This class can compute the next working day from today.

It extends the DateTime class and takes a given time of the day, which defaults to now, and computes the next working day.

The class considers a range of working hours, and whether it is Sunday or an holiday to exclude from the list working days.

It can also return the formatted day according to a given format template.

Innovation Award
PHP Programming Innovation award nominee
October 2015
Number 4


Prize: One book of choice by Packt
When a store is closed, sometimes it is useful to inform customers when will be the next time it will be opened, but that depends on the current week day and whether the next day will be a holiday or not.

This class can compute the current or the next working day considering open business hours, Sundays and holidays.

Manuel Lemos
Picture of Ravi Kumar
  Performance   Level  
Name: Ravi Kumar <contact>
Classes: 6 packages by
Country: India India
Innovation award
Innovation award
Nominee: 2x

Details

Response

This class can compute the next working day from today.

It extends the DateTime class and takes a given time of the day, which defaults to now, and computes the next working day.

The class considers a range of working hours, and whether it is Sunday or an holiday to exclude from the list working days.

It can also return the formatted day according to a given format template.

Added holidays reasons.

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file README.md Data Auxiliary data
Plain text file Response.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:167
This week:1
All time:8,066
This week:1,047Up