Web Application v1.0.0

HR Admin - HR & Payroll Management System

A complete HR and payroll system for Philippine businesses, built in PHP. It covers employee records, attendance, leave, payroll with SSS / PhilHealth / Pag-IBIG and withholding tax, cash advances, and PDF payslips, all in a clean dashboard.

Built with

PHPOOPMVCMySQLJavaScriptBootstrap 5.3Boxicons

HR Admin is a ready-to-run HR and payroll system for small and medium businesses in the Philippines. It takes HR from the daily time record all the way to a printed payslip.

HR logs time in and time out for the whole team on one screen. The system works out lates, undertime, overtime and half days from your work schedule. Approved leave is marked on the time record automatically, and paid leave is included in the next payroll.

Payroll runs twice a month (1st–15th and 16th–end of month) and handles both monthly-rated and daily-rated employees. Each run computes basic pay, absences, late deductions, overtime pay and allowances. It also deducts SSS, PhilHealth and Pag-IBIG contributions and withholding tax based on the TRAIN law table, then any cash advances and loans. You can review and recompute a draft as often as needed. Once you finalize it, the run is locked and every cash advance and loan balance updates automatically. Payslips can be downloaded as PDF one at a time or for the whole payroll in a single file. No extra libraries are needed.

HR Admin also includes performance reviews scored on six criteria, a performance report that shows each employee’s scores next to their attendance, and leave balances for every employee. You also get a payroll register with government contribution totals and CSV exports for attendance and payroll.

It is built with plain PHP (OOP, MVC) and MySQL, with no framework and no Composer. It runs on XAMPP out of the box and comes with demo data.

Key features

  • Employee profiles: personal and employment details, monthly or daily pay rate, allowances, SSS / PhilHealth / Pag-IBIG / TIN numbers, bank account and emergency contact
  • Departments with headcount and monthly payroll cost
  • Daily time record: automatic late, undertime, overtime and half-day computation, a configurable grace period, and one-click “fill regular hours”
  • Attendance history with filters and a summary report you can export to CSV
  • Leave management: leave types with yearly credits (paid or unpaid), approve or reject, leave balances, and a working-day counter when filing
  • Semi-monthly payroll for monthly and daily-rated employees, with drafts you can recompute and runs that lock once finalized
  • Automatic SSS, PhilHealth, Pag-IBIG and withholding tax computation, with rates you can edit in Settings
  • Cash advances: approval flow, a fixed deduction each payroll, repayment tracking and a limit based on monthly pay
  • Deductions: recurring, capped like a loan, or one-time (uniforms, damages, HMO dependents)
  • Payslip PDF: download one payslip or every payslip in a run as one PDF; payslips can also be printed from the browser
  • Performance reviews: six criteria with a live overall score, review history and a performance report with rating distribution and department averages
  • Reports: payroll register, monthly payroll cost, government contribution totals, CSV exports
  • Two user roles: Administrator and HR Officer
  • Security: CSRF protection, hashed passwords and input validation
  • Polished interface: toast notifications, confirmation before deleting, and a responsive layout for desktop, tablet and mobile
  • Demo data included: 18 employees, six weeks of attendance and three payroll runs

Installation Guide

Follow the steps below to set up and run the application on your local environment.

Requirements:

Step 1: Extract the file

  • Extract the hr-admin.zip and copy the extracted folder into your XAMPP htdocs directory, for example C:\xampp\htdocs\hr-admin.

Step 2: Open the XAMPP Control Panel and start:

  • Apache
  • MySQL

Step 3: Create the database

  • Open phpMyAdmin at http://localhost/phpmyadmin.
  • Click New.
  • Enter the database name sweldo_hr.
  • Click Create.

Step 4: Import the database

  • Select sweldo_hr in the left sidebar.
  • Go to the Import tab.
  • Choose the file in pesotrack/database/sweldo_hr.sql.
  • Click Import.

Step 5: Configure database credentials

  • Locate the database configuration file, such as config/database.php or config.php.

Example using PDO:

<?php

$host = "localhost";
$dbname = "sweldo_hr";
$username = "root";
$password = "";

try {
    $pdo = new PDO(
        "mysql:host=$host;dbname=$dbname;charset=utf8mb4",
        $username,
        $password
    );

    $pdo->setAttribute(
        PDO::ATTR_ERRMODE,
        PDO::ERRMODE_EXCEPTION
    );

} catch (PDOException $e) {
    die("Database connection failed.");
}

Step 6: Run the application

  • Open your browser and go to http://localhost/hr-admin/

Step 7: Login demo account

  • Administrator: demo_admin@gmail.com
  • HR Officer: demo_hr@gmail.com
  • All passwords: edinstack
32 folders · 93 files
├── app/
│ ├── Config/
│ │ ├── config.php
│ │ └── routes.php
│ ├── Controllers/
│ │ ├── AccountController.php
│ │ ├── AttendanceController.php
│ │ ├── AuthController.php
│ │ ├── CashAdvanceController.php
│ │ ├── DashboardController.php
│ │ ├── DeductionController.php
│ │ ├── DepartmentController.php
│ │ ├── EmployeeController.php
│ │ ├── LeaveController.php
│ │ ├── PayrollController.php
│ │ ├── PayslipController.php
│ │ ├── PerformanceController.php
│ │ ├── ReportController.php
│ │ ├── SettingController.php
│ │ └── UserController.php
│ ├── Core/
│ │ ├── Auth.php
│ │ ├── Controller.php
│ │ ├── Csrf.php
│ │ ├── Database.php
│ │ ├── Model.php
│ │ ├── Pdf.php
│ │ ├── Router.php
│ │ ├── Session.php
│ │ └── Validator.php
│ ├── Helpers/
│ │ └── functions.php
│ ├── Models/
│ │ ├── Attendance.php
│ │ ├── CashAdvance.php
│ │ ├── Deduction.php
│ │ ├── Department.php
│ │ ├── Employee.php
│ │ ├── LeaveRequest.php
│ │ ├── LeaveType.php
│ │ ├── PayrollItem.php
│ │ ├── PayrollPeriod.php
│ │ ├── PerformanceReview.php
│ │ ├── Setting.php
│ │ └── User.php
│ ├── Services/
│ │ ├── AttendanceCalculator.php
│ │ ├── GovernmentContributions.php
│ │ ├── PayrollCalculator.php
│ │ ├── PayrollService.php
│ │ └── PayslipPdf.php
│ ├── Views/
│ │ ├── account/
│ │ │ └── index.php
│ │ ├── attendance/
│ │ │ ├── daily.php
│ │ │ └── index.php
│ │ ├── auth/
│ │ │ └── login.php
│ │ ├── cash-advances/
│ │ │ └── index.php
│ │ ├── dashboard/
│ │ │ └── index.php
│ │ ├── deductions/
│ │ │ └── index.php
│ │ ├── departments/
│ │ │ └── index.php
│ │ ├── employees/
│ │ │ ├── form.php
│ │ │ ├── index.php
│ │ │ └── show.php
│ │ ├── errors/
│ │ │ └── 404.php
│ │ ├── layouts/
│ │ │ ├── app.php
│ │ │ ├── auth.php
│ │ │ └── head.php
│ │ ├── leaves/
│ │ │ ├── _tabs.php
│ │ │ ├── balances.php
│ │ │ ├── form.php
│ │ │ ├── index.php
│ │ │ └── types.php
│ │ ├── partials/
│ │ │ ├── confirm-modal.php
│ │ │ ├── empty.php
│ │ │ ├── page-header.php
│ │ │ └── sidebar.php
│ │ ├── payroll/
│ │ │ ├── index.php
│ │ │ └── show.php
│ │ ├── payslips/
│ │ │ ├── index.php
│ │ │ └── show.php
│ │ ├── performance/
│ │ │ ├── _tabs.php
│ │ │ ├── form.php
│ │ │ ├── index.php
│ │ │ ├── report.php
│ │ │ └── show.php
│ │ ├── reports/
│ │ │ ├── attendance.php
│ │ │ ├── index.php
│ │ │ └── payroll.php
│ │ ├── settings/
│ │ │ └── index.php
│ │ └── users/
│ │ └── index.php
│ ├── .htaccess
│ └── bootstrap.php
├── database/
│ ├── .htaccess
│ └── sweldo_hr.sql
├── public/
│ └── assets/
│ ├── css/
│ │ └── app.css
│ ├── img/
│ │ └── logo.svg
│ └── js/
│ └── app.js
├── .htaccess
├── LICENSE
├── README.md
└── index.php
  1. v1.0.0 Latest Nov 14, 2026
    • Initial release

Reviews (0)

Log in to review this item after you buy it.
No reviews yet.

More web applications

See all
BotikaRx - Pharmacy Management System Premium
Web Application

BotikaRx - Pharmacy Management System

A complete pharmacy system built with Laravel 13 and Tailwind CSS. It covers medicine in...

Laravel 13 Tailwind CSS 4 JavaScript
₱4,999.00
Aralin LMS - Learning Management System Premium
Web Application

Aralin LMS - Learning Management System

A complete Learning Management System built with Laravel 12 and Bootstrap 5.3. It has ad...

Laravel 12 MySQL Bootstrap 5.3
₱9,499.00