0.4
Pre-release
Pre-release
Important update to rename method getLastWorkDays()
to getLastDays()
.
$Employee = new Employee();
$Employee->setCredentials(['api_key' => 'API_KEY_HERE']);
$Helpers = new Helpers();
$Helpers->setEmployee($Employee);
// PHP array of list of dates like 2020-01-22.
$workdays = $Helpers->getLastDays(5);
$result = $Helpers->report($workdays);
print_r($result);