POS - Point of Sale System in PHP using CodeIgniter 4 Free Source Code



This simple project is a Point Sale 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 POS (Point of Sale) platform for a certain shop or store. This allows the Shop to easily store, retrieve, and manage their daily transaction records. It has a pleasant user interface with the help of Bootstrap 5 Framework to give the end-users a better experience while using the application. It consists of user-friendly features and functionalities.

About the Point of Sale System

This project was developed using the following:

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

This Point of Sale System Project is only accessible to the Point of Sale System. It requires the management to log in their valid system credentials in order to gain access to the features and functionalities of the system. The users can manage the list of products that are available in the shop. They can add new, edit, and delete products to the system. In this system, the user can store the records of the customer transactions. On creating a new transaction, users can simply list all the items or products the customer desired to purchase. The system automatically computes the total payable amount of the customer each time the user adds a new item, changes the item quantity, and removes the item from the list. The system will prevent the user to save transactions without at least 1 product or item listed. It also stops the process if the tendered amount is invalid or less than the total amount of the transactions. All the transactions are listed on the "Transaction Page" where users can delete and view the transaction details.


  • Login
  • Home Page
  • Product Management
    • Add New Product
    • List All Products
    • Edit Product Details
    • Delete Product
  • Transaction Management
    • Add New Transaction
    • List All Transactions
    • View Transaction Details
    • Delete Transaction
  • 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

Login Page

Point of Sale System

Product List

Point of Sale System

Transaction Form Page

Point of Sale System

Transaction List

Point of Sale System

Transaction Details Page

Point of Sale 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 pos_db.
  6. Import the provided SQL file. The file is known as pos_db.sql located inside the database folder.
  7. Browse the Point of Sale System in a browser. i.e. http://localhost/ci4_pos.

Default Access:

Email: [email protected]
Password: admin123


That's it. You can now explore the features and functionalities of this Point of Sale 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.


Add new comment