Download the PHP package lee/work-home-schedule without Composer
On this page you can find all versions of the php package lee/work-home-schedule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lee/work-home-schedule
More information about lee/work-home-schedule
Files in lee/work-home-schedule
Package work-home-schedule
Short Description Estimate working home date with Carbon::mixin
License MIT
Homepage https://github.com/peter279k/work-home-schedule
Informations about the package work-home-schedule
Working Home Schedule
Installation
-
Download
composer
firstly: - Install
lee/work-home-schedule
secondly:
Introduction
This is about working home schedule to estimate current working status on specific date.
It's based on following scenario for A/B team work:
- A team work from office today, and B team will work from home today.
- A team work from home tomorrow, and B team will work from office tomorrow.
- And so on.
This situation will skip on country holiday and weekend.
Usage
This class depends on Carbon::mixin
method.
The code snippets are as follows:
- Set
startDateStatus
about working from home or office. - Set
csvPath
about specific CSV file path. - Set
csvHead
about whether CSV file path has head. - Loading calendar data, the calendar CSV format is available here.
We assume that the 2020-04-06
is start date and working statuses are as follows:
- The start date status is
office
.
Get next working date about code snippets are as follows:
Get previous working date about code snippets are as follows:
Get next working dates with specific date ranges about code snippets are as follows:
Get previous working dates with date ranges about code snippets are as follows: