Releases: samaphp/desktime
Releases · samaphp/desktime
0.7.2
0.7.1
0.7
0.6
Bunch of improvements:
- Making employee goals variable public in Desktime Class to allow to override the goals.
- New method to getEmployeeByEmail().
- Allow instantiating the class with a specific employee by Desktime EmployeeID.
- Add an example of how to use getEmployeeByEmail() in README file.
- Calculate the shortness for reports.
- Add more details for short target/minimum for report() method.
0.5
0.4
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);