Simple Attendance System in PHP using CodeIgniter 4 Source Code



This simple project is an Employee Attendance Management System. This is a web-based application project developed in PHP, CodeIgniter4, and MySQL Database. This is a simple Online Attendance Log Platform for the Employees of a certain company. This application helps to record the employees' attendance log effectively and is easy to retrieve. The application has a simple and pleasant user interface using the Bootstrap 5 Framework. It consists of user-friendly features and functionalities to give end-users a better experience while using the application.

About the Employee Attendance Management System

This project was developed using the following:

  • PHP version >= 7.4
  • CodeIgniter 4
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • Font Awesome
  • Bootstrap

This Employee Attendance Management System Project in CodeIgniter 4 is accessible to both the company management and employees. The management can access the admin panel or the system. It requires the management staff to log in with their valid and registered user credentials in order to gain access to the features and functionalities of the said side. The system admin users are the ones who are in charge of listing, adding, and managing the list of the employees. They can also manage the system credentials of the other users. The Attendance Log List is only accessible to the management. The Employees can simply log their attendance by entering their company ID or code on the attendance log page. They can only log their "Time In" and "Time Out" attendance once a day. The system returns a message for those employees who log in more than once to prevent duplicate data on the database.


  • Home Page
  • Employee Management
    • Add New Employee
    • List All Employees
    • Edit/Update Employee Details
    • Delete Employee
  • User Management
    • Add New User
    • List All Users
    • Edit/Update User Details
    • Delete User
  • Attendance Management
    • Log Attendance
    • List All Attendances
    • Delete Attendance
  • Update Account Credentials
  • Login and 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

Login Page

Employee Attendance Management System

Home Page

Employee Attendance Management System

Employee List

Employee Attendance Management System

Attendance Log Page

Employee Attendance Management System

Attendance List Page

Employee Attendance 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. Open your Command Prompt or Terminal and change the current directory to your source code directory path.
  6. Execute the following command for the database migration.
    • php spark db:create eams_db
    • php spark migrate
    • php spark db:seed Auth
    • php spark db:seed Employee
  7. Browse the Employee Attendance Management System in a browser. i.e. http://localhost/ci4_eams/.

Admin Default Access:

Email: [email protected]
Password: admin123


That's it. You can now explore the features and functionalities of this Employee Attendance 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 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 byDeck (not verified)on Thu, 06/30/2022 - 18:11

Tq 4 code,

Add new comment

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