Simple Inventory Management System in PHP/OOP Free Source Code



This simple project is a Simple Inventory Management System. This is a web-based application project developed in PHP and MySQL Database. This project's main goal is to provide certain shops, stores, or any business with an online platform to manage their Inventory or Product Stock. The application helps the business to easily store, retrieve, and monitor their product stock. It has a simple and pleasant user interface with the help of Bootstrap 5 Framework and jQuery that also gives the management or end-users a better experience while using the application. This project is consists of user-friendly features and functionalities

About the Simple Inventory Management System

This project was developed using the following:

  • PHP version >= 7.2
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Font Awesome
  • Bootstrap 5 Framework
  • DataTables

This Simple Inventory Management System Project is only accessible to the shop administrator. It requires the administrator system user credential to gain access to the features and functionalities. The Administrator can manage the list of Customers, Categories, Brands, Suppliers, Products, Purchases, and Orders. Each of these features contains CRUD (Create, Read, Update, and Delete) operations or functionalities. The system automatically computes the available stock of each product on hand.

The project lists were developed using PHP and MySQL Database. Each List on this application is displayed using the Bootstrap DataTables. Data are being loaded using Ajax Requests. Each of the delete functions has a confirmation feature that prevents the user to remove the data by accident. The application forms for each process are displayed using the Bootstrap Modal.


  • Home/Inventory List
  • Customer Management
    • Add New Customer
    • List All Customers
    • Edit/Update Customer Details
    • Delete Customer
  • Category Management
    • Add New Category
    • List All Categories
    • Edit/Update Category Details
    • Delete Category
  • Brand Management
    • Add New Brand
    • List All Brands
    • Edit/Update Brand Details
    • Delete Brand
  • Supplier Management
    • Add New Supplier
    • List All Suppliers
    • Edit/Update Supplier Details
    • Delete Supplier
  • Product Management
    • Add New Product
    • List All Products
    • Edit/Update Product Details
    • View Product Details
    • Delete Product
  • Purchase Management
    • Add New Purchase
    • List All Purchases
    • Edit/Update Purchase Details
    • Delete Purchase
  • Order Management
    • Add New Order
    • List All Orders
    • Edit/Update Order Details
    • Delete Order
  • 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

Simple Inventory Management System

Customer List

Simple Inventory Management System

Category List

Simple Inventory Management System

Brand List

Simple Inventory Management System

Supplier List

Simple Inventory Management System

Product List

Simple Inventory Management System


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

Default Admin Access:

Email: [email protected]
Password: admin123


That's it. You can now explore the features and functionalities of this Simple Inventory Management System in PHP. 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 byzakariaTAL (not verified)on Wed, 11/23/2022 - 15:19

IT DOES NOT WORK IT DISPLAYS THIS MESSAGE Warning: Attempt to read property "num_rows" on bool in C:\xampp\htdocs\ims\index.php on line 29
Submitted byAyush S (not verified)on Sat, 12/17/2022 - 03:55

Thank You so much for sharing this project. It helps me a lot
Submitted byyomi patience (not verified)on Wed, 07/12/2023 - 23:16

problem with the simple inventory management system. Inventory tab not working

Please help it is urgent thanks
Submitted byKaisen (not verified)on Fri, 10/06/2023 - 06:44

I keep trying the system but it keeps giving me this error Fatal error: Uncaught mysqli_sql_exception: Unknown database 'ims_db' in C:\xampp\htdocs\ims\Inventory.php:18 Stack trace: #0 C:\xampp\htdocs\ims\Inventory.php(18): mysqli->__construct('localhost', 'root', Object(SensitiveParameterValue), 'ims_db') #1 C:\xampp\htdocs\ims\index.php(6): Inventory->__construct() #2 {main} thrown in C:\xampp\htdocs\ims\Inventory.php on line 18 I don't understand what could be the problem
Submitted byAnowarul Islam (not verified)on Sat, 10/28/2023 - 14:18

Thank you, share the sample project.

Add new comment