iceithq/payroll-php-client

Payroll PHP Client

Maintainers

Package info

github.com/iceithq/payroll-php-client

pkg:composer/iceithq/payroll-php-client

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.3 2026-02-25 05:45 UTC

This package is auto-updated.

Last update: 2026-02-25 05:47:35 UTC


README

composer require iceithq/payroll-php-client

Usage

<?php

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

$base_url = 'http://localhost:8003/api/v2';
$client = new Payroll\Client($base_url, true);
$r = $client->employee()->login('your_username', 'your_password');
$token = $r->token;
$client->token($token);
$r = $client->employee()->time_in();
$r = $client->employee()->time_out();
$r = $client->employee()->get_timesheets();

$r = $client->employee()->apply_for_leave([
    'start_date' => '2024-07-01',
    'end_date' => '2024-07-05',
    'reason' => 'Vacation',
]);
$r = $client->employee()->get_leaves();

print_r($r);