PHPackages                             mybuilder/when-i-work-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. mybuilder/when-i-work-api

ActiveLibrary[API Development](/categories/api)

mybuilder/when-i-work-api
=========================

Library that support connections and retrieve data from WhenIWork.com API

1.0.1(3y ago)29.7k1MITPHPPHP &gt;=7.4

Since Jul 1Pushed 3y ago13 watchersCompare

[ Source](https://github.com/mybuilder/when-i-work-api)[ Packagist](https://packagist.org/packages/mybuilder/when-i-work-api)[ RSS](/packages/mybuilder-when-i-work-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (5)Versions (12)Used By (0)

When I Work library
===================

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

This library support connection and retrieval of data from WhenIWork.com API. At least PHP 7.4 is required.

Docs:

```
require_once __DIR__ . '/vendor/autoload.php';

use MyBuilder\Library\WhenIWork\Repository\PayrollRepository;
use MyBuilder\Library\WhenIWork\Repository\UserRepository;
use MyBuilder\Library\WhenIWork\Service\WhenIWorkApi;

$serializer = JMS\Serializer\SerializerBuilder::create()->build();
$client = new GuzzleHttp\Client();
$whenIWorkApi = new WhenIWorkApi($client, 'your-developer-key', 'user-email', 'user-password');
$userRepository = new UserRepository($whenIWorkApi, $serializer);
$payrollRepository = new PayrollRepository($whenIWorkApi, $serializer);
```

### List of all users:

[](#list-of-all-users)

```
$users = $userRepository->findAll();
```

### List of all payroll periods:

[](#list-of-all-payroll-periods)

```
$payrolls = $payrollRepository->findByPeriod();
```

Todos:

- Add more models that are supported via WhenIWork API
- Add more functions that are supported via WhenIWork API

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~294 days

Recently: every ~397 days

Total

10

Last Release

1350d ago

Major Versions

0.5.2 → 1.0.02022-09-28

PHP version history (4 changes)0.3.1PHP &gt;=5.4

0.4.0PHP &gt;=5.6

0.5.0PHP &gt;=7.1

1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7441f1c0c4066b13108d5a5381fac0c548008328a90b7a55b6e5b00ef95a4c92?d=identicon)[mybuilder](/maintainers/mybuilder)

---

Top Contributors

[![gavinlove](https://avatars.githubusercontent.com/u/308682?v=4)](https://github.com/gavinlove "gavinlove (13 commits)")[![alister](https://avatars.githubusercontent.com/u/173165?v=4)](https://github.com/alister "alister (7 commits)")[![PWalkow](https://avatars.githubusercontent.com/u/1130582?v=4)](https://github.com/PWalkow "PWalkow (5 commits)")[![CyExy](https://avatars.githubusercontent.com/u/179921?v=4)](https://github.com/CyExy "CyExy (4 commits)")[![maxbaldanza](https://avatars.githubusercontent.com/u/2786820?v=4)](https://github.com/maxbaldanza "maxbaldanza (4 commits)")[![harry-wood](https://avatars.githubusercontent.com/u/227525?v=4)](https://github.com/harry-wood "harry-wood (1 commits)")

---

Tags

phpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mybuilder-when-i-work-api/health.svg)

```
[![Health](https://phpackages.com/badges/mybuilder-when-i-work-api/health.svg)](https://phpackages.com/packages/mybuilder-when-i-work-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M710](/packages/sylius-sylius)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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