Skip to content

A library to identify the team capacity for a certain team size by member

License

Notifications You must be signed in to change notification settings

violinist-dev/lib-absence-io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov FOSSA Status

lib-absence-io

A library to identify the team capacity for a certain team size by member

$absenceEndPoint = 'https://app.absence.io/api/v2/';
$absenceKey = '012345678901234567890123';
$absenceId = '0123456789012345678901234567890123456789012345678901234567890123';

$absenceService = new AbsenceService($absenceEndPoint, $absenceKey, $absenceId);
$team = ["John Doe", "Johny Doey"];
$from = \DateTime::createFromFormat('Y-m-d', '2018-07-01');
$to = \DateTime::createFromFormat('Y-m-d', '2018-10-01');
var_dump($absenceService->calculateWorkdays($from, $to, 'München', $team));

Result looks like this:

array(2) { 'Johny Doey' => int(46) 'John Doe' => int(55) }

License

FOSSA Status

About

A library to identify the team capacity for a certain team size by member

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%