2017 © Pedro PelĂĄez
 

library lib-absence-io

image

dpeuscher/lib-absence-io

  • Saturday, July 21, 2018
  • by dpeuscher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 89 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status codecov FOSSA Status, (*1)

lib-absence-io

A library to identify the team capacity for a certain team size by member, (*2)

$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:, (*3)

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

License

FOSSA Status, (*5)

The Versions

21/07 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

01/07 2018

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

30/06 2018

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires