Online Employee Leave Management System in PHP Free Source Code



This project is entitled Online Leave Management System. This is a web-based application project developed in PHP and MySQL Database. The main goal of this project is to provide the certain Company to manage their employees' leave requests. This is also helpful to the employees as an easy way of submitting their leave requests. The application has a pleasant user interface using Materialize/Material Design Library. It consists of user-friendly features and functionalities.

About the Online Leave Management System

I developed this project using the following:

  • PHP
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • Ajax
  • jQuery
  • Materialize/Material Design
  • Material Icon

This Online Leave Management System can be accessed and managed by 2 types of user roles which are the Admin and Employee user. These user roles have different permission, features, and functionalities from each other. The admin user is the side of the system for the system management while the Employee users are the company employees.

The admin users are the ones who are in charge of managing the main list and functionalities of the system. Here, the company management or Human Resource Staff can list the leave requests of the employees and update them as Approved or Not Approved. The Admin users are in charge of managing the list of employees in the company which means they are also the ones who create the employee's system credentials.

The employee users are required to log in with their credentials in order to gain access to the said side's features and functionalities. The employees can update his/her account password, update personal information, apply for leave, and list leaves history. The employee can simply submit their leave application by filling all the required fields on the leave form page. Employees can check the updates on their leave application by redirecting the page to the leave history page.


Admin Side

  • Home Page
    • Display Summary
    • List Lates Leave Applications
  • Manage Department
    • Add New Department
    • List All Departments
    • Edit Department Details
    • Delete Department
  • Manage Leave Type
    • Add New Leave Type
    • List All Leave Types
    • Edit Leave Type Details
    • Delete Leave Type
  • Manage Employees
    • Add New Employee
    • List All Employees
    • Edit Employee Details
    • Update Employee's Status
  • Manage Leave Application
    • List All Leave Applications
    • List All Pending Leave Applications
    • List All Approved Leave Applications
    • List All Not Approved Leave Applications
    • Take Action
  • Update Password
  • Login and Logout


  • Login
  • Display and Update Profile
  • Apply for Leave
  • List Leave History
  • Update Password
  • Logout

The source code was developed only for educational purposes only. You can download the source code for free and modify it the way you wanted.

System Snapshots

Login Page

Online Leave Management System

Dashboard Page (Admin-Side)

Online Leave Management System

Department List (Admin-Side)

Online Leave Management System

Employee List (Admin-Side)

Online Leave Management System

Employee Details (Admin-Side)

Online Leave Management System

Leave Details Page

Online Leave Management System

Leave History Page (Employee-Side)

Online Leave Management System

How to Run ??


  • Download and Install any local web server such as XAMPP.
  • Download the provided source code zip file. (download button is located below)

System Installation/Setup

  1. Open your XAMPP Control Panel and start Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming elms_dm.
  6. Import the provided SQL file. The file is known as elms_dm.sql located inside the database folder.
  7. Browse the Online Leave Management System in a browser. i.e. http://localhost/elms/.

Manager Default Access:

Username: admin
Password: admin123

Sample Employee Access:

Email: [email protected]
Password: mcooper123


That's it. You can now explore the features and functionalities of this Online Leave Management System in PHP. I hope this will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
6 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.