Back to all work

Enterprise HRM

HR Management System

115+ RBAC permissions, dynamic leave calculation, automated workflow orchestration for 100+ employees.

PHP 8MySQLPHPUnit
HR Management System screenshot 1
HR Management System screenshot 2
HR Management System screenshot 3

Overview

Enterprise HR management system with 13 modules, handling leave management with real-time accrual calculation, multi-step approval workflows, and 115+ granular RBAC permissions. Built on custom PHP 8 framework with PSR-4 autoloading across 162 files, with 85% test coverage via PHPUnit.

Hard Problems

Challenge

Real-time leave calculation across multi-year histories with policy changes.

Solution

On-demand calculation engine generating date ranges, fetching attendance, computing accruals with session-level caching.

Challenge

115+ granular permissions without per-request performance degradation.

Solution

Database-driven permission system with session cache and batch permission checks.

Key Decisions

DecisionChoseOverBecause
Leave calculationDynamic on-demandBatch pre-computationReal-time accuracy, eliminates sync delays, handles retroactive policy changes.

Tech Stack

languages

PHP 8.xSQLJavaScript

frameworks

PSR-4 Custom Framework

data

MySQL 8

tools

ComposerPHPUnitDOMPDFPHPMailerPhpSpreadsheet