orangehrm/api-client-php

OrangeHRM API client

1.2.4 2019-09-06 10:37 UTC

This package is not auto-updated.

Last update: 2024-05-04 09:12:58 UTC


README

A PHP client lib for the OrangeHRM API

How to install

You can install orangehrm api client lib via composer

  "require": {
    "orangehrm/api-client-php": "1.2.4"
  },

How to use

As a start you have to install Orangehrm system and setup a oauth client

Once you have that, You can call api as follows

<?php
use Orangehrm\API\Client;
use Orangehrm\API\HTTPRequest;

$client = new Client('http://orangehrm.os','testclient','testpass');

$request = new HTTPRequest('employee/search');
$result = $client->get($request)->getResult();