PHP code example of grantholle / orangehrm-api

1. Go to this page and download the library: Download grantholle/orangehrm-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

grantholle / orangehrm-api example snippets


return [
    'base_url' => env('ORANGEHRM_BASE_URL'),
    'client_id' => env('ORANGEHRM_CLIENT_ID'),
    'client_secret' => env('ORANGEHRM_CLIENT_SECRET'),
];

use GrantHolle\OrangeHrm\OrangeHrmFacade;

$employees = OrangeHrmFacade::getEmployees();
bash
php artisan vendor:publish --provider="GrantHolle\OrangeHrm\OrangeHrmServiceProvider" --tag="orangehrm-config"