PHPackages                             grantholle/orangehrm-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. grantholle/orangehrm-api

ActiveLibrary

grantholle/orangehrm-api
========================

An api wrapper for OrangeHRM.

1.2.3(3y ago)1196MITPHPPHP ^8.0

Since Aug 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/grantholle/orangehrm-api)[ Packagist](https://packagist.org/packages/grantholle/orangehrm-api)[ Docs](https://github.com/grantholle/orangehrm-api)[ RSS](/packages/grantholle-orangehrm-api/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependencies (10)Versions (8)Used By (0)

OrangeHRM API Wrapper
=====================

[](#orangehrm-api-wrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8308abc0abf05355eee622cb8c1cd00ba6c19c677b4145c314b2b5a24f2d1358/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772616e74686f6c6c652f6f72616e676568726d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grantholle/orangehrm-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b0be80899a9d9ae7eef28db2fa717ede527983e11c16b527741cc201e689a89e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616e74686f6c6c652f6f72616e676568726d2d6170692f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/grantholle/orangehrm-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5528e058d50f7a465accf247e7298af6af5d6624612276699b53aca3862f44e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616e74686f6c6c652f6f72616e676568726d2d6170692f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/grantholle/orangehrm-api/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ecdb6af8cabe138c77258f61641b239812b19806eabac969b9eff750cf94110d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772616e74686f6c6c652f6f72616e676568726d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grantholle/orangehrm-api)

---

This is a very light client for the OrangeHRM API. It does not support all the capabilities of the API currently and is a work in progress.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require grantholle/orangehrm-api
```

You can publish the config file with:

```
php artisan vendor:publish --provider="GrantHolle\OrangeHrm\OrangeHrmServiceProvider" --tag="orangehrm-config"
```

This is the contents of the published config file:

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

You should add the `ORANGEHRM_BASE_URL`, `ORANGEHRM_CLIENT_ID`, and `ORANGEHRM_CLIENT_SECRET` keys to your `.env` file. You can learn about how to create the api credentials in the [documentation](https://api.orangehrm.com/).

Usage
-----

[](#usage)

There are a handful of methods implemented, including `addEmployee`, `getEmployee`, and `updateEmployee`.

```
use GrantHolle\OrangeHrm\OrangeHrmFacade;

$employees = OrangeHrmFacade::getEmployees();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~63 days

Recently: every ~91 days

Total

7

Last Release

1347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57ed974235b4a23e6aaf9d9039bff2b0d1268edc0e44ebab6e60e4bf1e6eb144?d=identicon)[grantholle](/maintainers/grantholle)

---

Top Contributors

[![grantholle](https://avatars.githubusercontent.com/u/1189456?v=4)](https://github.com/grantholle "grantholle (27 commits)")

---

Tags

hacktoberfestlaravelgrantholleorangehrm-api

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/grantholle-orangehrm-api/health.svg)

```
[![Health](https://phpackages.com/badges/grantholle-orangehrm-api/health.svg)](https://phpackages.com/packages/grantholle-orangehrm-api)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
