2017 © Pedro PelĂĄez
 

library due-php

Due date calculator written in PHP

image

shakahl/due-php

Due date calculator written in PHP

  • Sunday, May 13, 2018
  • by shakahl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Due date calculator in PHP

This project is a due date calculator library written in PHP., (*1)

Structure

bin/   - executable files for Composer
src/   - library source
tests/ - Executable files for Composer

Features

The program reads the currently reported problems (bugs) from an issue tracking system and calculates the due date following the rules below: - Working hours can be specified. Defaults are 9AM to 5PM every working day (Monday through Friday) - The program does not deal with holidays, which means that a holiday on a Thursday is still considered as a working day by the program. Also a working Saturday will still be considered as a nonworking day by the system. - The turnaround time is given in working hours, which means for example that 2 days are 16 hours. As an example: if a problem was reported at 2:12PM on Tuesday then it is due by 2:12PM on Thursday. - All submitted date values must be between working hours., (*2)

Usage

As a library

composer require shakahl/due-php
use Shakahl\Due\DueDateCalculator;

$calculator = DueDateCalculator::make();

$calculator->setDayStart(9);
$calculator->setDayEnd(17);

$dueDate = $calculator->calculate('2018-05-11 11:23:42', 7);

echo $dueDate->format('c'); // 2018-05-14T10:23:42+00:00

CLI - Command line interface

composer global require shakahl/due-php
due calculate "2018-05-11 11:23:42" 7

Testing

$ composer test

Credits

License

The MIT License (MIT). Please see License File for more information., (*3)

The Versions

13/05 2018

dev-master

9999999-dev https://github.com/shakahl/due-php

Due date calculator written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php composer package calculator due duedate

12/05 2018

v1.0.2

1.0.2.0 https://github.com/shakahl/due-php

Due date calculator written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php composer package calculator due duedate

12/05 2018

v1.0.1

1.0.1.0 https://github.com/shakahl/due-php

Due date calculator written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php composer package calculator due duedate

12/05 2018

v1.0.0

1.0.0.0 https://github.com/shakahl/due-php

Due date calculator written in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php composer package calculator due duedate