The problem
An online HR management system with employee records and leave tracking replaces the spreadsheets and paper registers that small businesses still use to manage their people. In a 10–50 person company, leave requests arrive on chat messages, balances live in a spreadsheet, and nobody can say at a glance who is on leave or how many days anyone has left. The result is double-booked leave, disputed balances and attendance counted by hand at month end. This project builds one web system that fixes that workflow: a searchable employee directory holds every record, leave flows through two-step approval — HR review, then manager approval — deducting balances only on final approval, attendance is summarised monthly, and a payroll-lite module produces salary slips from the same data. It is scoped to a small business — not a college leave workflow, not a full payroll suite — so every module is small enough for one student team to build and defend.
Employee applies for leave from the web portal.
Follow the working sequence
How it works
The system works as one connected flow from employee record to salary slip. An admin creates an employee record — role, department, manager, joining date — and the system opens that employee's leave account at the standard 12 Casual, 10 Sick and 15 Earned days a year. When the employee applies for leave, the system checks the request against already approved leave for the same person, rejects overlaps, then checks the remaining balance for that leave type. A valid request enters the queue at step one, HR review; if HR approves, it moves to step two, manager approval, and only that final approval deducts the days from the balance. Meanwhile attendance is recorded per working day, and at month end attendance and leave feed the salary-slip view, which computes gross, deductions and net pay. Every figure is computed from the same stored data, so a balance, an attendance percentage and a net pay can each be re-checked by hand.
- The admin/HR user signs in and creates employee records (name, designation, department, reporting manager, joining date, contact), which opens each employee's leave account at the standard 37-day annual entitlement.
- An employee applies for leave by choosing a leave type and dates; the system checks the request against approved leave for the same employee and rejects any overlap automatically.
- The system checks the remaining balance for that leave type and refuses the request if the days asked for exceed the balance.
- A valid request enters the approval queue at step one (HR review); HR can approve it forward or reject it with a reason.
- An HR-approved request moves to step two (manager approval); only the manager's final approval deducts the days from the employee's balance.
- Attendance is recorded per working day and summarised monthly as present, leave and absent days with an attendance percentage for each employee.
- At month end, the salary-slip view computes gross pay (Basic 60%, HRA 25%, Special 15%), deducts PF (12% of Basic) and professional tax (₹200), and shows the net pay per employee.
Tech stack:
- HTML5 · CSS3 · JavaScript
- PHP 8
- MySQL
- Apache · XAMPP
- phpMyAdmin
- Git
| Parameter | Value |
|---|---|
| User roles | 3 roles (Admin/HR, Manager, Employee) |
| Leave types | 3 types (Casual, Sick, Earned) |
| Annual leave entitlement | 37 days per employee (12 Casual + 10 Sick + 15 Earned) |
| Approval steps | 2 steps (HR review, then manager approval) |
| Demo employee records | 12 employees across 5 departments (seeded demo data) |
| Demo month working days | 22 working days (November 2026 demo month) |
| Demo attendance reconciliation | 249 present + 12 leave + 3 absent = 264 employee-days (verified in demo) |
| Demo leave reconciliation | 122 days used + 322 days remaining = 444 days across 12 employees (verified in demo) |
| Salary split | Basic 60%, HRA 25%, Special allowance 15% of monthly gross (design target) |
| Deductions | PF 12% of Basic, professional tax ₹200 per month (demo values) |
| Platform | Web application, runs in a browser on XAMPP/localhost (design target) |
| Database | MySQL with employee, leave-request, attendance and salary tables |
Project features
The system's strongest capabilities are its employee directory, its two-step leave approval workflow, its leave-balance arithmetic and its payroll-lite salary slips. The directory keeps a complete record for every employee — role, department, reporting manager, joining date and contact — searchable and filterable by department. Leave approval is a two-step state machine: HR reviews first, then the reporting manager gives final approval, and the balance is deducted only when the second step completes, so a request stuck at step one never changes a balance. Balances are computed, never typed: 12 Casual + 10 Sick + 15 Earned days give 37 days a year, and the demo's seeded data adds up exactly — 122 days used and 322 remaining across 12 employees. The salary-slip view splits monthly gross into Basic, HRA and Special allowance and deducts PF and professional tax, producing a slip that matches the month's attendance.
- [Employee directory with full records] A searchable directory of all employees with designation, department, reporting manager, joining date, contact details and status (Active / On leave), plus a full-record view with per-type leave balances for the selected employee. Three roles control access: admin/HR owns records and first-step review, managers give final approval, and employees apply for leave and view their own balances and slips.
- [Two-step leave approval workflow] Every leave request passes through HR review first and then manager approval. Balances are deducted only on final approval, and a request rejected at either step leaves the balance untouched.
- [Leave balance tracking] Annual entitlement of 12 Casual + 10 Sick + 15 Earned days (37 days per employee). Remaining balance is always computed as entitlement minus used days, and the demo displays a totals check proving the seeded figures add up.
- [Overlapping-leave rejection] A new request that overlaps an already approved leave for the same employee is rejected automatically with the conflicting dates shown, so the same days can never be booked twice.
- [Monthly attendance summary] Present, leave and absent days per employee for the month, with attendance percentage computed from working days. The demo month has 22 working days and the totals reconcile: 249 present + 12 leave + 3 absent = 264 employee-days.
- [Payroll-lite salary slips] A salary-slip view for every employee: monthly gross split into Basic (60%), HRA (25%) and Special allowance (15%), less PF at 12% of Basic and professional tax of ₹200, with the net pay shown. This is a payslip generator, not a statutory payroll system.
- [Optional: email notifications (optional customization)] Email or SMS alerts on leave approval and rejection can be added on request using a mail API; the base project records the decision in the system and shows it in the request history.
- [Future scope: biometric attendance import] Importing attendance from a biometric device or spreadsheet upload is future scope and is not part of the base build.
What is included
- Complete PHP + MySQL web application source code
- Seeded demo database with 12 employees, leave requests, attendance and salary data
- Working single-file HTML demo of the dashboard, directory, leave workflow, attendance and salary slips
- Project report PDF (background, workflow design, database schema, methodology, results)
- PPT presentation for final review
- Viva Q&A preparation document (roles, approval state machine, balance arithmetic, payroll-lite limits)
Limitations & prerequisites
- Built for a small business (10–50 employees); it is not a college leave-approval workflow and not a full statutory payroll suite — tax filing, PF returns and compliance reports are not included.
- No biometric or attendance-device integration in the base build; attendance is entered/recorded in the system and import is future scope.
- No email or SMS notifications in the base build; decisions are recorded and shown in the request history (notifications are an optional customization).
- Salary slips use fixed demo deduction rules (PF 12% of Basic, professional tax ₹200); real payroll rules vary by state and company policy and must be configured.
- The demo runs on seeded data with 12 employees; performance with hundreds of employees and years of records has not been measured.
- Leave rules (entitlement days, carry-forward, encashment) are fixed per the specification; company-specific leave policies need configuration.
Frequently Asked Questions
What does this HR system actually do?
It manages a small business's people data end to end: employee records, leave requests with a two-step approval, live leave balances, monthly attendance summaries and payroll-lite salary slips, all computed from the same stored records so the figures agree with each other. One system replaces the spreadsheets and chat messages that small companies normally use, so balances, attendance and payslips always agree.
How does the two-step leave approval work?
A leave request first goes to HR for review and then to the reporting manager for final approval, and the balance is deducted only when the manager approves, so a request rejected at either step never changes a balance at all. The demo also rejects any new request that overlaps an already approved leave for the same employee, so the same days can never be booked twice.
Is this a full payroll system?
No, and that is a deliberate scope choice. The project generates salary slips from a fixed, transparent rule — Basic 60%, HRA 25%, Special 15%, less PF at 12% of Basic and ₹200 professional tax — but it does not do statutory payroll, tax filing or PF returns. For a final-year project this is the right size: the payslip maths is fully explainable in a viva.
Can it be hosted online and used by a real company?
Yes. It is a standard PHP + MySQL application that runs on XAMPP locally and on any shared hosting with PHP and MySQL, so it can be deployed for a real small business after the leave rules and salary configuration are set to that company's policy. The demo is seeded with 12 fictional employees, and real data replaces the seed data at setup.
What can be customized?
Leave entitlements and leave types, the approval chain (for example adding a second manager level), email notifications on approval or rejection, attendance import from a spreadsheet, and extra reports such as department-wise leave summaries can all be changed without touching the core workflow. Each change is quoted separately based on feasibility and timeline.
Is this project suitable for a final-year project?
Yes, for Computer Science, IT and Web Development programs. It demonstrates database design with four related tables, session-based roles, a two-step approval state machine, computed balances that can be verified by hand, and a complete working demo with realistic data — all of which a student can explain and defend in a viva.
Components & software requirements
- HTML5 · CSS3 · JavaScript
- PHP 8
- MySQL
- Apache · XAMPP
- phpMyAdmin
- Git
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.