How punithaj-hub/inventory_management_system works
This is a PHP/MySQL inventory-management web app. The principal workflow is staff login, role-based navigation, product/category maintenance, recording sales, and reviewing sales reports. The sampled code shows authentication and product writes, while the source index establishes shared page dependencies; storage internals and several advertised features were not excerpted. Supplier management, purchase orders, and low-stock alerts are documented in the README but have no corresponding paths in the supplied tree, so they are shown as unverified capabilities without invented source paths.
Main entry points: load.php Application bootstrap · admin_menu.php Admin navigation · user_menu.php Staff navigation · product.php Product catalog
Components 28
Access and UI
- Login form
index.php - Authentication
auth.php - Role session
includes/session.php - Page shell
layouts/header.php - Admin navigation
layouts/admin_menu.php - Special navigation
layouts/special_menu.php - Staff navigation
layouts/user_menu.php - User management
users.php - Role groups
group.php
Inventory
- Categories
categorie.php - Product catalog
product.php - Product creation and edit
add_product.php - Product media
media.php - Suppliers and orders
Sales
- Sales management
sales.php - Record sale
add_sale.php
Dashboards and reports
- Admin dashboard
admin.php - Sales reports
sales_report.php - Daily sales
daily_sales.php - Monthly sales
monthly_sales.php - Report processing
sale_report_process.php - Low-stock alerts
Shared platform
- Application bootstrap
includes/load.php - Shared functions
includes/functions.php - Inventory queries
includes/sql.php - Database connection
includes/database.php
Other components
- Staff user
- MySQL database
Connections 37
- Staff user → Login form: submits credentials
index.php - Login form → Authentication: posts credentials
index.php - Authentication → Application bootstrap: loads services
auth.php - Authentication → Role session: starts session
- Authentication → Staff user: redirects by role
- Application bootstrap → Shared functions: requires
includes/load.php - Application bootstrap → Role session: requires
includes/load.php - Application bootstrap → Database connection: requires
includes/load.php - Application bootstrap → Inventory queries: requires
includes/load.php - Application bootstrap → MySQL database: connects through
- Product catalog → Application bootstrap: loads services
product.php - Product creation and edit → Application bootstrap: loads services
add_product.php - Product creation and edit → Inventory queries: writes product
add_product.php - Product creation and edit → Categories: reads category list
add_product.php - Product creation and edit → Product media: reads media list
add_product.php - Page shell → Role session: checks login
layouts/header.php - Page shell → Admin navigation: includes by role
layouts/header.php - Page shell → Special navigation: includes by role
layouts/header.php - Page shell → Staff navigation: includes by role
layouts/header.php - Admin navigation → Product catalog: links to
layouts/admin_menu.php - Admin navigation → Sales management: links to
layouts/admin_menu.php - Admin navigation → Categories: links to
layouts/admin_menu.php - Admin navigation → User management: links to
layouts/admin_menu.php - Admin navigation → Role groups: links to
layouts/admin_menu.php - Staff navigation → Sales management: links to
layouts/user_menu.php - Staff navigation → Sales reports: links to
layouts/user_menu.php - Staff navigation → Daily sales: links to
layouts/user_menu.php - Staff navigation → Monthly sales: links to
layouts/user_menu.php - Sales management → Record sale: links to
- Admin dashboard → Product catalog: links to
admin.php - Admin dashboard → Sales management: links to
admin.php - Admin dashboard → Inventory queries: requests summary data
admin.php - Sales reports → Report processing: processes report
- Daily sales → Application bootstrap: loads services
daily_sales.php - Monthly sales → Application bootstrap: loads services
monthly_sales.php - Suppliers and orders → Product catalog: supports restocking
README.md - Low-stock alerts → Product catalog: monitors stock
README.md