Employees Payroll Management System in PHP using CodeIgniter 4 Free Source Code



This simple project is an Employees Payroll Management System. This is a web-based application project developed in PHP, CodeIgniter 4 Framework, and MySQL Database. This project's main goal is to provide an automated and online application platform for a certain company to manage their employees' payroll or payslips. This allows the company's management to easily store, retrieve, and manage their employees' payslips. It has a pleasant user interface with the help of the Bootstrap 5 Framework that can give a better experience to the end-users while using the system. It consists of user-friendly features and functionalities.

About the Employees Payroll Management System

This project was developed using the following:

  • PHP version >= 8
  • MySQL Database
  • CodeIgniter 4 Framework
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap Framework

This Employees Payroll Management System Project is only accessible to the Company's Management. The system users are required to log in with their registered and valid user credentials before they can have access to the features and functionalities of the system features and functionalities. The system users can be only registered by the other user who has already access to the system. By default, the project contains admin user credentials when seeding this CodeIgniter Project.

The project was developed with multiple features and functionalities. Some of the system features are the Departments, Designation, Employees, Payrolls, and Payslips Management. Each of the said features has CRUD (Create, Read, Update, and Delete) functionalities. Also, each list has pagination features to optimize the data loads of the page in the future. The Employee List contains a Search Box which allows the user to easily find the employee data by searching only the part of his or her employee code or name. Talking about the Payslip Generation, system users are required to create a new payroll first before creating a payslip entry for an employee. The payslip page automatically computes the total Net of the employee using the Attendance, Earnings, Deductions, and Tax data of the employee for the selected payroll or cut-off. Users can also print the Employees Payslip.


  • Login
  • Home Page
    • Display the lists summaries
  • Department Management
    • Add New Department
    • List All Departments
    • Edit Department Details
    • Delete Department
  • Designation Management
    • Add New Designation
    • List All Designations
    • Edit Designation Details
    • Delete Designation
  • Employees Management
    • Add New Employee
    • List All Employees
    • Search Employee
    • Edit Employee Details
    • View Employee Details
    • Delete Employee
  • Payroll Management
    • Add New Payroll
    • List All Payrolls
    • Edit Payroll Details
    • Delete Payroll
  • Payslip Management
    • Add New Payslip
    • List All Payslips
    • View Payslip Details
    • Print Payslip Details
    • Delete Payslip
  • Users Management
    • Add New Users
    • List All Users
    • Update User Credential
    • Delete Users
  • Update Account Details/Credentials
  • 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 of some Features

Home Page

Employees Payroll Management System

Department List Page

Employees Payroll Management System

Designation List Page

Employees Payroll Management System

Employee List Page

Employees Payroll Management System

Payslip Details Page

Employees Payroll Management System

Payslip Details - Print View

Employees Payroll 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 payroll_db.
  6. Import the provided SQL file. The file is known as payroll_db.sql located inside the database folder.
  7. Browse the Employees Payroll Management System in a browser. i.e. http://localhost/ci4_payroll.

Default Access:

Email: [email protected]
Password: admin123


That's it. You can now explore the features and functionalities of this Employees Payroll Management System in PHP using CodeIgniter 4 Framework. 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 SourceCodester.com 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.


Submitted byMiles11 (not verified)on Fri, 11/11/2022 - 12:42

Warning: require(C:\xampp\htdocs\ppayroll\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\ppayroll\vendor\composer\autoload_real.php on line 55 Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\ppayroll\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ppayroll\vendor\composer\autoload_real.php:55 Stack trace: #0 C:\xampp\htdocs\ppayroll\vendor\composer\autoload_real.php(38): composerRequirea7dfb250e913cfbf02e3cb62086b3d9b('0e6d7bf4a5811bf...', 'C:\\xampp\\htdocs...') #1 C:\xampp\htdocs\ppayroll\vendor\autoload.php(12): ComposerAutoloaderInita7dfb250e913cfbf02e3cb62086b3d9b::getLoader() #2 C:\xampp\htdocs\ppayroll\system\Autoloader\Autoloader.php(119): include('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\ppayroll\system\Autoloader\Autoloader.php(108): CodeIgniter\Autoloader\Autoloader->loadComposerInfo(Object(Config\Modules)) #4 C:\xampp\htdocs\ppayroll\system\bootstrap.php(105): CodeIgniter\Autoloader\Autoloader->initialize(Object(Config\Autoload), Object(Config\Modules)) #5 C:\xampp\htdocs\ppayroll\index.php(26): require('C:\\xampp\\htdocs...') #6 {main} thrown in C:\xampp\htdocs\ppayroll\vendor\composer\autoload_real.php on line 55

Add new comment

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