PHP Projects

Employee Leave Management System Using PHP With Source Code

Project : Employee Leave Management

Features :

  1. Login System
  2. Admin Panel
  3. Apply leave, History
  4. Add, Manage Department
  5. Add, Manage Leave Type

Here, Employee has to log in and employee can easily apply for a leave. Admin has to approve or decline the leave request. Admin can add/manage leave type and add/manage employees.  This is a simple project done in PHP. It’s easy to operate and understand by users. The design is pretty simple and the user won’t find it difficult to understand, use and navigate.

How To Run?

You’ll need XAMP Server or WAMP Server. Put the file inside “c:/wamp/www/” or “c:/xampp/htdocs/”. Go To “localhost/phpmyadmin” in any browser and create Database (name according to SQL file).In that Database, Import the SQL file and finally go to URL: “http://localhost/file_name/phpfilename
Don’t Forget To create a database and import SQL file to run.


This Post Has 140 Comments

  1. thgf Reply

    where is exe file. of project

  2. Milind Reply

    There is no head of department module and there is no balance leave module please add this code

  3. Milind Reply

    hi sir there should be actually four module 1.admin 2.emplyoee 2.HOD(head of department) and superintendent.
    Emplyoee should see the remaining leave balance and number of days should be calculated automatically.

  4. Milind Reply

    Please include all this code sir.

  5. Milind37 Reply

    sir i need 4 modules 1. principal 2. emplyoee 3.HOD(head of department of the employee) and 4. superintendent(who will have the records)
    emplyoee can see the remaining balance leave.
    number of days of leave from date – to date it should count the days
    HOD needs to approve the leave as well as HOD can apply for leave

  6. Saif D Reply

    Iam unable to see any changes in the display even after making changes in the alpha.min.css sheet, Kindly help me what changes need to be done in the template in order to make changes in the styles.
    Thank you

    • Naseeb Bajracharya Reply

      try changing that CSS file name and make sure you change the CSS file name in every linked PHP file. I faced the same problem months ago… and it worked!!

  7. dan Reply

    The db file is missing

  8. Salman Khan Reply

    ? job sir!Do you have documentation regarding this employee leave management system or any class diagrams

  9. saurav Reply

    admin login is not working even if i change the values in the database

    • Naseeb Bajracharya Reply

      like what values did you change in the database?
      You just need to click on admin login or go to URL http://localhost/elms/admin/ and enter Admin’s username and password which we have provided inside README.txt file. It works well!! do try it again.

  10. franklin Reply

    there is no thresh hold or limit as in to how much an employee can apply for leave…lots of mnor bugs,please check.

  11. deepak bhamare Reply

    i hv to make this application in android….how i can use this php in my code

    • Ritesh Chhaudhari Reply

      Hi, dear Deepak Bhamare, we got your concern regarding your view on using PHP to develop Android apps. Here this might help you.

      Yes, it seems you can write mobile Android applications using PHP:
      Zend Studio – Develop in PHP-on-Phonegap/Cordova mobile API’s
      JPHP – compiles to Java bytecode, similar to JRuby and Jython, only for PHP (for Java and Android).
      PHAP, mobile App Developments in PHP – With PHAP, you can write your mobile apps entirely in PHP and share the same code on iOS, Android and Windows Phones.
      There are also various PHP server mobile apps/APK out there, both open-source and paid, which will host a PHP web application accessible locally on the Android mobile, however, these latter solutions may require the end user to install several applications/APK’s (this should not be the case with the list above).

  12. Renan Reply

    How to download it?

  13. Renan Reply

    You there!

    Where we can register new admin here?

  14. Renan Reply

    What is the password of the admin please?

  15. Renan Reply

    You there!

    Where I’d find the pop-up/word: “Welcome to Leave Management System” Where?

    • Naseeb Bajracharya Reply

      insert a JS code ” window.alert(“Welcome To ELMS”); ” in index file. Which should display Alert after logging in to the system.

  16. sateesg Reply

    Can u plz mail the report to my mail I’d it’s [email protected]

  17. Darshan Gajjar Reply

    Can u plz mail the report to my mail I’d it’s [email protected]

  18. anonymousy Reply

    Is there a way to generate a report at the end? like a summary of leaves taken weekly etc.

  19. Balji Reply

    I need report on Employee Leave Management System

  20. rahul bindal Reply

    want report on employee leave management system

  21. ariefbogie Reply

    nice work. right now i’m going to print a report for a single leave_history for user. but i have problem importing it’s data from tblleaves to a single applied leave, especially if that user have more than 1 applied leave. i hope u can help me. email: [email protected]

  22. peter Reply

    in the system who approves and disapproves the leave ?

  23. Sreenandini Reply

    I need this program using data structure in c

  24. Manjunatha Reply

    Sir this project is too good. Now we are doing the same project, we need report for this project please send the report to this mail [email protected]

  25. Cutes Reply

    i found error, if($fromdate > $todate){ $error=”bla bla bla”; }

    the message was Error, but still insert into the leaves table… and still can be approved by admin

  26. Guest Reply

    The search bar and show option which is there on leavehistory.php page of employees, i want to include that in the pendingleavehistory page of admin, how do i do that ?

  27. zimentwickler Reply

    How do i change the images inthe code

  28. rahul Reply

    what’s a admin user name and password

  29. awie Reply

    Hi, i would like to use this source code & change a little bit of the coding. It is okay for me to use?

  30. riya Reply

    hi,sir can i get the project report

  31. Asniya Reply

    Can u please send the report at [email protected]

  32. keshava Reply

    hi there! great work!
    can i get a copy of the project report? thanks in advance!
    my email: [email protected]

  33. Caraka Paramanandha Reply

    hi, im newbie here..i just started learn php.
    i followed the instruction and i succeeded to import elms.sql files
    but when i tried to run with this url : http://localhost/elms/apply-leave.php
    it shows :
    Error: SQLSTATE[HY000] [1049] Unknown database ‘elms’

    what to do next ?


  34. vanjean Reply

    sir please i need the report of employee leave management system 🙁 please send it on my yahoo [email protected]

  35. gekyume Reply

    i think you should make a video tutorial how to run this system, it will make people easy to run your system

    • gekyume Reply

      i already download that file then i cant run , it just show the source code and also i cant import the database

  36. Biswajit Reply

    Error: SQLSTATE[HY000] [1049] Unknown database ‘elms’

    • Fabian Ros Reply

      create a database naming “elms” and import the database file “elms.sql”

  37. adeel.721 Reply

    What is the license agreement for this project?

  38. Mark Parsos Reply

    Hi Please is there anyway you can show how to add a leave balance system to this project

  39. Iqbal Ahmad Reply


    I am unable to run the code in netbeans. I have attached screen shots having red exclamation mark on bulb sign in specified link. Please correct this an resend. Many thanks

    It says “Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404
    Apache/2.4.37 (Win32) OpenSSL/1.1.1a PHP/7.3.0”

    • Fabian Ros Reply

      You’re having this problem because the object doesn’t exist in your htdocs directory!!

  40. tiks Reply

    thank you for this but how about to registration of admin

  41. jaaf Reply

    hello Sir,
    do I have the possibility to take the project online (Linux Web Hosting)
    like GoDaddy or any different platform?
    if yes!
    can you help to know how to implement the operation on GoDaddy or mentioning a general idea about the web hosting?
    Thank you!

  42. amaan Reply

    hi sir … want report on employee leave management system … my email id is :- [email protected]

  43. jeffcvm Reply

    do the user and admin get email notification after they apply leave and leave been approve or reject ?

  44. aisya Reply

    please email the report to me sir, [email protected]

  45. Pravash Chandra Das Reply

    sir plz give idea how to run ,it shows not permission plz help me.

    • Fabian Ros Reply

      We recommend using PHP 5.6.3

      After Starting Apache and MySQL in XAMPP, follow the following steps

      1st Step: Extract file
      2nd Step: Copy the main project folder
      3rd Step: Paste in xampp/htdocs/

      Now Connecting Database

      4th Step: Open a browser and go to URL “http://localhost/phpmyadmin/”
      5th Step: Then, click on the databases tab
      6th Step: Create a database naming “elms” and then click on the import tab
      7th Step: Click on browse file and select “elms.sql” file which is inside “Sql File” folder
      8th Step: Click on go.

      After Creating Database,

      9th Step: Open a browser and go to URL “http://localhost/elms/”

      For Admin Panel,
      Go to URL “http://localhost/elms/admin”

      Provide the username and password which is provided inside the “Readme.txt” file.

  46. Jigar Reply

    Can i get this project of employee leave managment can u send me this file to my email id [email protected]

  47. prn Reply

    Error: SQLSTATE[HY000] [1049] Unknown database ‘elms’

  48. prn Reply

    the index.php file is not accessable

  49. Abhishek Reply

    I have seen the same project but a different author. You are the original author of this project

  50. salim Reply

    i am not able to add checkbox..please check

  51. karthik Reply

    can any one plz tell me how to remove chevron left 1 chevron right

  52. Omar Athman Reply

    i kindly ask for documentation of this project please

  53. pavithra Reply

    i am not able to login

  54. Bushke getahun Reply

    how to run each php notepad file using bracket code editor

  55. Bushke getahun Reply

    i need datail example elms php code to be execute

  56. shubham puri Reply

    coding of employee leave management system

  57. Sab Reply

    hi, when employee apply leave, it does not appear on there any problem?

  58. juzba Reply

    Can u plz mail the report to my mail I’d it’s [email protected]

  59. rakshitha Reply

    send me complete project above files are not working

  60. satyendra Reply

    Can u plz mail the report to my mail I’d it’s [email protected]

  61. Jenny Ooi Reply

    Can u please mail the report to my email at [email protected]

  62. KARPANA Reply

    Hi can you please email me the report.
    [email protected]
    It will be helpful if you send me the report especially the erd and dfd.
    Thank you

  63. Yared Sete Reply

    Thanks a lot!

  64. Kathirasan Reply

    Why i cant change the background images? Please help

  65. Slim Carter Reply

    Log In keeps on saying invalid details !!!!!

  66. Elizabeth Reply

    hey, I liked the project but the employee signin page is echoeing the “invalid details” error. Kindly help



  68. JOOJO Reply

    please sir can i get the report and full documentation about this project
    my email is [email protected]

  69. ankita Reply

    please give me it’s report sir! [email protected]

  70. esa Reply

    Can u plz mail the report to my mail I’d it’s [email protected]

Leave a Reply

Your email address will not be published. Required fields are marked *