orangehrm / api-client-php
OrangeHRM API client
1.2.4
2019-09-06 10:37 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 4.8
This package is not auto-updated.
Last update: 2025-04-19 13:42:57 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();