Skip to content

orangehrm/api-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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