Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 672 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 672 Bytes

OrangeHRM API Client (PHP)

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();