Simple POS and Inventory Management System in PHP with Source Code


This is a Simple POS and Inventory System using PHP/PDO. This project can help a certain shop or store manage its sales transactions and inventory monitoring. The system has 2 types of user which is the Admin and the Cashier. The Admin is in charge to populate the important data into the database such as the product list. The admin user has access to all features and functionalities of this system. The cashier user can only manage the customer list and create a new sales transaction. The system can generate a Printable Sales Report that can be filtered using a date range.


  • Login/Logout
  • Manage Categires
  • Manage Products
  • Manage Sales
  • Manage Supplier
  • Stock Monitoring (Inventory)
  • Manage System Users
  • Generate Sales Report

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download and Extract the source code zip file.


  1. Open the XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. If you using XAMPP, copy the extracted source code folder and paste it into the xampp's "htdocs" directory, And if you are using WAMP, paste it into the "www" directory.
  3. Open a web browser and browse the PHPMyAdmin. (http://localhost/phpmyadmin)
  4. Create a new database naming "sales".
  5. Import the SQL file into your newly created database. The file is known as "sales.sql" inside the source code folder
  6. Open a web browser and browse the web application. (http://localhost/EREC)

Admin Access

Username: admin
Password: admin123



That's it! I hope this Simple POS and Inventory System will help you with what you are looking for. I also believe that this code will help you improve your programming skills using the PHP language.

Thank you

Enjoy Coding :)

Please Sign Up to communicate with me on Lykup

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 bysalim21on Thu, 11/01/2018 - 23:09

Hi, when you are trying to login, an error message come on the page as below, Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\EREC\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\EREC\login.php on line 12 Please can you help us to resolve this issue with a fix for some simple instruction. thank you so much.
Submitted byMohan khadar (not verified)on Fri, 07/02/2021 - 00:07

Is the best system

Add new comment