Web Application v1.0.0

Stockroom - Inventory Management System

A clean, ready-to-use Inventory Management System built with PHP (OOP, MVC) and MySQL. Track products and stock levels, get low-stock alerts, and run inventory reports.

Built with

PHPMySQLMVCBootstrap 5.3BoxiconsJavaScriptPDO

Stockroom is an inventory management system for small businesses, stores and warehouses that need to know what’s on the shelf before it runs out. It’s built with plain PHP using an object-oriented MVC structure, so the code is easy to read, extend and customize without learning a framework.

Every stock change is recorded as a movement: deliveries, returns, sales, damaged items and count corrections. That gives you a complete history for each product, and the on-hand quantity always matches the log. Each product has a reorder level. When stock reaches it, the item shows up in Stock Alerts with a suggested order quantity and the estimated restock cost.

The dashboard shows stock value, items that need restocking, a 14-day chart of stock in and out, recent movements and stock value by category. The Reports page covers any date range. It shows units received and released, sales value, inventory valuation, best sellers and a restock list. Reports can be printed or exported to CSV files that open correctly in Excel.

The interface is custom-designed and doesn’t look like a template. Every product shows a “shelf gauge” bar for its stock level, actions show toast notifications, and every delete asks for confirmation in a pop-up first. It works on desktop, tablet and mobile.

Key features

  • Dashboard: total products, units on hand, stock value at cost and at selling price, how many items need restocking, a 14-day stock in/out chart, recent movements and value by category
  • Product management: add, edit, view and delete products with SKU, category, unit, cost price, selling price, reorder level and notes
  • Search and filters: find products by name or SKU, filter by category or stock status, sort by name, lowest stock, highest value or newest
  • Product details: on-hand stock, margin per unit, stock value and a complete stock history for each product
  • Categories: add, edit in a pop-up and delete. Products in a deleted category become “Uncategorized”
  • Stock in / stock out: record adjustments with a reason (purchase, return, sale, damaged, count correction) and an optional note. You can’t remove more stock than you have
  • Stock movement log: full history of every change, with filters by product, direction and date range
  • Stock alerts: separate lists for out-of-stock and running-low items, suggested order quantities, estimated restock cost, one-click “Receive”, and an alert count on the sidebar
  • Reports: choose any date range or use a quick preset (7 days, 30 days, this month, this year). Shows units received and released, sales value, potential margin, valuation by category, best sellers and a restock list
  • Export and print: CSV export of the valuation, stock movements and restock list (opens correctly in Excel), plus a print-friendly report layout
  • Shelf gauge: a bar on each product showing current stock against its reorder level
  • Toast notifications for every action
  • Security: login with bcrypt-hashed passwords, CSRF protection on every form, prepared statements against SQL injection, and safe stock updates when two people adjust the same item at once
  • Responsive design with a mobile sidebar

Installation Guide

Follow the steps below to set up and run the application on your local environment.

Requirements:

Step 1: Extract the file

  • Extract the stockroom.zip and copy the extracted folder into your XAMPP htdocs directory, for example C:\xampp\htdocs\stockroom.

Step 2: Open the XAMPP Control Panel and start:

  • Apache
  • MySQL

Step 3: Create the database

  • Open phpMyAdmin at http://localhost/phpmyadmin.
  • Click New.
  • Enter the database name stockroom_db.
  • Click Create.

Step 4: Import the database

  • Select stockroom_db in the left sidebar.
  • Go to the Import tab.
  • Choose the file in stockroom/database/stockroom_db.sql.
  • Click Import.

Step 5: Configure database credentials

  • Locate the database configuration file, such as config/database.php or config.php.

Example using PDO:

<?php

$host = "localhost";
$dbname = "stockroom_db";
$username = "root";
$password = "";

try {
    $pdo = new PDO(
        "mysql:host=$host;dbname=$dbname;charset=utf8mb4",
        $username,
        $password
    );

    $pdo->setAttribute(
        PDO::ATTR_ERRMODE,
        PDO::ERRMODE_EXCEPTION
    );

} catch (PDOException $e) {
    die("Database connection failed.");
}

Step 6: Run the application

  • Open your browser and go to http://localhost/stockroom/

Step 7: Login demo account

  • Email: demo_admin@gmail.com
  • Password: edinstack
22 folders · 46 files
├── app/
│ ├── config/
│ │ └── config.php
│ ├── controllers/
│ │ ├── AlertController.php
│ │ ├── AuthController.php
│ │ ├── CategoryController.php
│ │ ├── DashboardController.php
│ │ ├── MovementController.php
│ │ ├── ProductController.php
│ │ └── ReportController.php
│ ├── core/
│ │ ├── App.php
│ │ ├── Controller.php
│ │ ├── Database.php
│ │ ├── Model.php
│ │ ├── Session.php
│ │ └── helpers.php
│ ├── models/
│ │ ├── Category.php
│ │ ├── Movement.php
│ │ ├── Product.php
│ │ └── User.php
│ ├── views/
│ │ ├── alerts/
│ │ │ └── index.php
│ │ ├── auth/
│ │ │ └── login.php
│ │ ├── categories/
│ │ │ └── index.php
│ │ ├── dashboard/
│ │ │ └── index.php
│ │ ├── errors/
│ │ │ └── 404.php
│ │ ├── layouts/
│ │ │ ├── auth.php
│ │ │ ├── head.php
│ │ │ └── main.php
│ │ ├── movements/
│ │ │ └── index.php
│ │ ├── partials/
│ │ │ ├── adjust-modal.php
│ │ │ ├── delete-modal.php
│ │ │ ├── pagination.php
│ │ │ ├── sidebar.php
│ │ │ └── toasts.php
│ │ ├── products/
│ │ │ ├── form.php
│ │ │ ├── index.php
│ │ │ └── show.php
│ │ └── reports/
│ │ └── index.php
│ └── .htaccess
├── database/
│ ├── .htaccess
│ └── stockroom_db.sql
├── public/
│ └── assets/
│ ├── css/
│ │ └── app.css
│ ├── img/
│ │ └── logo.svg
│ └── js/
│ └── app.js
├── .htaccess
├── LICENSE
├── README.md
└── index.php
  1. v1.0.0 Latest Nov 09, 2026
    • Initial release

Reviews (0)

Log in to review this item after you download it.
No reviews yet.

More web applications

See all
BotikaRx - Pharmacy Management System Premium
Web Application

BotikaRx - Pharmacy Management System

A complete pharmacy system built with Laravel 13 and Tailwind CSS. It covers medicine in...

Laravel 13 Tailwind CSS 4 JavaScript
₱4,999.00
Aralin LMS - Learning Management System Premium
Web Application

Aralin LMS - Learning Management System

A complete Learning Management System built with Laravel 12 and Bootstrap 5.3. It has ad...

Laravel 12 MySQL Bootstrap 5.3
₱9,499.00