PHPackages                             samaphp/desktime - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. samaphp/desktime

ActiveLibrary[API Development](/categories/api)

samaphp/desktime
================

0.7.2(4y ago)327GPL-2.0-or-laterPHPPHP &gt;=7.1

Since Jan 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/samaphp/desktime)[ Packagist](https://packagist.org/packages/samaphp/desktime)[ RSS](/packages/samaphp-desktime/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

Desktime (WIP)
==============

[](#desktime-wip)

PHP library for desktime.com API.

You need to get your API key value. You can find your api\_key value here:

[![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](http://makeapullrequest.com)[![saythanks](https://camo.githubusercontent.com/0ed52f85e8734435bfcc1e1018e098598d3978b8ee84a8d717fe444e0d381887/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7361792d7468616e6b732d6666363962342e737667)](http://samaphp.com/contact-me)

**Examples:**

```
$Account = new Account();
$Account->setCredentials(['api_key' => 'API_KEY_HERE']);
$company = $Account->company();
print_r($company);

stdClass Object
(
    [pass] => 1
    [code] => 200
    [body] => stdClass Object
        (
            [name] => Company name
            [work_starts] => 07:15:00
            [work_ends] => 18:00:00
            [work_duration] => 28800
            [working_days] => 79
            [work_start_tracking] => 07:00:00
            [work_stop_tracking] => 22:45:00
            [timezone_identifier] => Asia/Riyadh
            [__request_time] => 1578933311
        )

)
```

You can get all employees or api\_key employee owner.

```
$Employee = new Employee();
$Employee->setCredentials(['api_key' => 'API_KEY_HERE']);

// Getting all employees.
// $all = $Employee->all(['date' => '2019-11-13', 'period' => 'month']); //.
$all_employees = $Employee->all();
print_r($all_employees);

// Getting current employee. (the owner of this API key)
$current_employee = $Employee->get();
print_r($current_employee);

// Load employee data by his Desktime email.
$email = 'email@example.com';
$employee = $Employee->getEmployeeByEmail($email);
print_r($employee);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~81 days

Recently: every ~160 days

Total

9

Last Release

1665d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9233f415f42755f68dc3006e2853b76c34de54b04c9535202b70aa147790e6a?d=identicon)[samaphp](/maintainers/samaphp)

---

Top Contributors

[![samaphp](https://avatars.githubusercontent.com/u/531627?v=4)](https://github.com/samaphp "samaphp (32 commits)")

---

Tags

desktimedesktimedesktimeapidesktime.com

### Embed Badge

![Health badge](/badges/samaphp-desktime/health.svg)

```
[![Health](https://phpackages.com/badges/samaphp-desktime/health.svg)](https://phpackages.com/packages/samaphp-desktime)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
