PHP Api client for OrangeheHRM rest api
PHP
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/API
test
.gitignore
.travis.yml
README.md
composer.json
composer.lock
phpunit.xml

README.md

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.3"
  },

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