Point of Sale (POS) System Using PHP/PDO Free Source Code



This is a PHP Project called Point of Sales System. This project has many features that commonly needed to ease the day-to-day transaction of a certain store/company. This POS System can also handle customer credit which the customer can make an installment payment. The system has a simple user interface and user-friendly functionalities.

About the system

This Point of Sale System was developed using PHP/PDO, MySQL Database, HTML, CSS, and Javascript. The feature of this system is it handles 2 payment type which is the cash and credit. The Other feature of this system is it generate various reports such as sales receipt, inventory report, Sales Report(daily, weekly, yearly). This system also generates reports for credit transactions such as customer ledger reports, accounts receivable reports, and collection reports. This system also has a purchases form wherein you can input incoming products and automatically added the qty to your product's inventory. You can also add customer and supplier details to this system.

The source code is free to download. Feel free to download the source code and modify it the way you wanted.


  • Manage Customer
  • Manage Supplier
  • Manage Products
  • Manage Purchases
  • Handle Cash Sale
  • Handle Credit Sale
  • Manage Payment
  • List Receivables
  • Customer Ledger
  • Generate Printable Sales Report
  • Generate Printable Collection Report
  • Generate Printable Receipt/Invoice

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are 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.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming sales.
  6. Import the provided SQL file. The file is known as sales.sql located inside the extracted folder.
  7. Browse the Point of Sale System in a browser. i.e. http://localhost/POS

Admin Login Information:

Username: admin
Password: admin


That's it! You can now explore the features and functionalities of this Point of Sale System in PHP/PDO. I hope this will help you understand how to create a web application such as this and you'll find it useful for your future PHP Projects.

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 bybledinjoon Fri, 02/14/2014 - 06:38

hi argie!my name is Bledar.I like your works.I am a student and i like php/mysql for creating websites.If you have any code such as hotel management or high school system , I would be grateful !! regards from Bledar
Submitted byBoonlambhan08@… (not verified)on Mon, 07/09/2018 - 09:46

In reply to by bledinjo

Sir pg need mo system meron po ako>> hotel management or high school system
Submitted byAnonymous (not verified)on Sat, 06/26/2021 - 21:48

Fatal error: Uncaught TypeError: Unsupported operand types: int * string in E:\Xampp\htdocs\POS\main\incoming.php:24 Stack trace: #0 {main} thrown in E:\Xampp\htdocs\POS\main\incoming.php on line 24

Add new comment