PHPackages                             wheniwork/wheniwork-api - 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. wheniwork/wheniwork-api

ActiveLibrary[API Development](/categories/api)

wheniwork/wheniwork-api
=======================

Client library for the When I Work scheduling and attendance platform.

0.1(11y ago)1143.4k[5 PRs](https://github.com/dolfelt/wheniwork-api-php/pulls)1MITPHP &gt;=5.3

Since Feb 4Compare

[ Source](https://github.com/dolfelt/wheniwork-api-php)[ Packagist](https://packagist.org/packages/wheniwork/wheniwork-api)[ Docs](https://github.com/dolfelt/wheniwork-api-php)[ RSS](/packages/wheniwork-wheniwork-api/feed)WikiDiscussions Synced 4d ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

When I Work API
===============

[](#when-i-work-api)

Very simple and easy When I Work API wrapper, for PHP.

Complex wrappers are for noobs. This lets you access the When I Work API using the docs as directly as possible.

Requires PHP 5.3 and a pulse.

Installation
------------

[](#installation)

You can install the wheniwork-api using [Composer](https://getcomposer.org/). Just add the following to your `composer.json`:

```
{
    "require": {
        "wheniwork/wheniwork-api": "dev-master"
    }
}

```

You will then need to:

- run `composer install` to get these dependencies added to your vendor directory
- add the Composer autoloader to your application with this line: `require("vendor/autoload.php")`

Examples
--------

[](#examples)

Login (requires Developer Key)

```
$response = Wheniwork::login('developer_key', 'daniel@example.com', '******');
// TODO: Store the API token somewhere
$wiw = new Wheniwork($response->login->token);
```

List users (/users/ method)

```
$wiw = new Wheniwork('api-token-here');
print_r($wiw->get('users'));
```

Create a new shift

```
$wiw = new Wheniwork('api-token-here');
$result = $wiw->create('users', array(
                'email'             => 'nicole.jones@example.com',
                'first_name'        => 'Nicole',
                'last_name'         => 'Jones',
                'phone_number'      => '+16515559009'
            ));
print_r($result);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

4165d ago

### Community

Maintainers

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

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

---

Top Contributors

[![dolfelt](https://avatars.githubusercontent.com/u/202546?v=4)](https://github.com/dolfelt "dolfelt (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wheniwork-wheniwork-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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