2017 © Pedro Peláez
 

library when-i-work-api

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

image

mybuilder/when-i-work-api

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

  • Tuesday, May 22, 2018
  • by mybuilder
  • Repository
  • 8 Watchers
  • 1 Stars
  • 485 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 10 % Grown

The README.md

When I Work library

This library support connection and retrieval of data from WhenIWork.com API. At least PHP 7.4 is required., (*1)

Docs: http://dev.wheniwork.com, (*2)


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:

$users = $userRepository->findAll();

List of all payroll periods:

$payrolls = $payrollRepository->findByPeriod();

Todos:, (*3)

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

The Versions

22/05 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

0.5.2

0.5.2.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

dev-bug/end-times

dev-bug/end-times

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

0.5.1

0.5.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

dev-bug/LICENCE-and-fix

dev-bug/LICENCE-and-fix

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

0.5.0

0.5.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2018

dev-feature/update-to-php7.1

dev-feature/update-to-php7.1

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

  Sources   Download

MIT

The Requires

 

The Development Requires

21/05 2018

dev-feature/payroll-support

dev-feature/payroll-support

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

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2018

0.4.1

0.4.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

20/10 2016

0.4.0

0.4.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

04/03 2016

0.3.1

0.3.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PWalkow

01/07 2015

0.2.0

0.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PWalkow

01/07 2015

0.1.0

0.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PWalkow