Restaurant Management System in PHP With Source Code
Introduction of Restaurant Management System in PHP
This is PHP Project on Simple "Restaurant Management System", which has been developed in PHP script jQuery and Bootstrap 4 library. The main objective of this system is overcome the problem of current managing table booked and order or billing manual system of the Restaurant, and convert that system into simple and full proofed process by this PHP Restauant Management System. Currently, we have see in restaurant when we have go to restaurant then waiter has come and take order and waiter has write order in diary and then after it will tell order to cooked manually and at the time of creating bill then again waiter go to cashier counter and again tell customer order detail manually, so by using this system Waiter will directly store customer order details and under this system and when customer go to cashier counter his bill with ready with all their food item this.
Goal of Restaurant Management System
This PHP project we have build for educational purpose, so new programmer can learn how to developed any web based application. With this post you will find the complete source code of this system and you can also get the link of Live demo of Restaurant Management System. This Restaurant Management System is an Open Source system which you can download from this post under zip format and you can check complete source code in you local computer. So you can modified code and learn how to build PHP based web application or developed web development application. You can even use the Source code in you academic projects of your final year project.
Modules of Restaurant Management System
Following are the Module of Restaurant Management System.
- Order Management Module
- Billing Management Module
- Live Table Status Module
- Food Category Module
- Food Item Module
- Tax Management Module
- User Management Module
DEMO
Feature of Restaurant Management System
- There are mainly three user under this sysem. Master User, Waiter & Cashier
- Master User can Set up Restuarant Management System.
- Master User can set the Currency of Restuarant Management System at the time of Set of System.
- Master User can set the Timezone of this Restuarant Management System at the time of Set of System.
- Master User can Add Edit Delete and View Category Data.
- Master User can Add Edit Delete and View Food Item Data.
- Master User can Add Edit Delete and View tax details.
- Master User can Add Edit Delete and View Restaurant Table details.
- Master User can Add Edit Delete and View User data. That means master user can create new User account and lock user account also.
- Master User can create edit delete and view Restaurant Order data.
- Master User can Create Edit Delete and View Restaurant Billing Data.
- Master User can View Live Status of Table thatmeans which table is booked and which table is available.
- Master User can view data of Today sales, Yesterday sales, Last 7 Days sales and All time sales data also.
- Waiter User can Create and edit Order details.
- Waiter USer can view Live Table status.
- Cashier USer can View list of billing data, he can check the status of bill and he can take print of bill.
- Cashier User can view the live table status.
- This Restaurant Management System is fully responsive and mobile friendly this is beacuse for build this system we have use Bootstrap 4 Admin template.
Web Technology Used in Restaurant Management System
There are following Web Technology has used for build this Restaurant Management System.
Server-Side
- PHP
- Mysql Database
Client-side
- jQuery
- Ajax
- Bootstrap 4
- Parsley.js
- jQuery DataTable Plugin
- Bootstrap Select Plugin
Database of Restaurant Management System
Before start using this Restaurant Management System, first you have to create database of system. So for create database of this system you have to create new database in your local phpmyadmin and then after run following sql script. So it will make required table for this Restaurant Management system and user can check source in your local computer.
--
-- Database: `rms`
--
-- --------------------------------------------------------
--
-- Table structure for table `order_item_table`
--
CREATE TABLE `order_item_table` (
`order_item_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`product_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`product_quantity` int(4) NOT NULL,
`product_rate` decimal(12,2) NOT NULL,
`product_amount` decimal(12,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `order_table`
--
CREATE TABLE `order_table` (
`order_id` int(11) NOT NULL,
`order_number` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`order_table` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`order_gross_amount` decimal(12,2) NOT NULL,
`order_tax_amount` decimal(12,2) NOT NULL,
`order_net_amount` decimal(12,2) NOT NULL,
`order_date` date NOT NULL,
`order_time` time NOT NULL,
`order_waiter` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`order_cashier` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`order_status` enum('In Process','Completed') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `order_tax_table`
--
CREATE TABLE `order_tax_table` (
`order_tax_table_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`order_tax_name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`order_tax_percentage` decimal(4,2) NOT NULL,
`order_tax_amount` decimal(12,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `product_category_table`
--
CREATE TABLE `product_category_table` (
`category_id` int(11) NOT NULL,
`category_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`category_status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `product_table`
--
CREATE TABLE `product_table` (
`product_id` int(11) NOT NULL,
`category_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`product_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`product_price` decimal(10,2) NOT NULL,
`product_status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `restaurant_table`
--
CREATE TABLE `restaurant_table` (
`restaurant_id` int(11) NOT NULL,
`restaurant_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_tag_line` varchar(300) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_address` text COLLATE utf8_unicode_ci NOT NULL,
`restaurant_contact_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_email` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_currency` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_timezone` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`restaurant_logo` varchar(250) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `table_data`
--
CREATE TABLE `table_data` (
`table_id` int(11) NOT NULL,
`table_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`table_capacity` int(3) NOT NULL,
`table_status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tax_table`
--
CREATE TABLE `tax_table` (
`tax_id` int(11) NOT NULL,
`tax_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`tax_percentage` decimal(4,2) NOT NULL,
`tax_status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_table`
--
CREATE TABLE `user_table` (
`user_id` int(11) NOT NULL,
`user_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`user_contact_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`user_email` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`user_password` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`user_profile` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
`user_type` enum('Master','Waiter','Cashier') COLLATE utf8_unicode_ci NOT NULL,
`user_status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL,
`user_created_on` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `order_item_table`
--
ALTER TABLE `order_item_table`
ADD PRIMARY KEY (`order_item_id`);
--
-- Indexes for table `order_table`
--
ALTER TABLE `order_table`
ADD PRIMARY KEY (`order_id`);
--
-- Indexes for table `order_tax_table`
--
ALTER TABLE `order_tax_table`
ADD PRIMARY KEY (`order_tax_table_id`);
--
-- Indexes for table `product_category_table`
--
ALTER TABLE `product_category_table`
ADD PRIMARY KEY (`category_id`);
--
-- Indexes for table `product_table`
--
ALTER TABLE `product_table`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `restaurant_table`
--
ALTER TABLE `restaurant_table`
ADD PRIMARY KEY (`restaurant_id`);
--
-- Indexes for table `table_data`
--
ALTER TABLE `table_data`
ADD PRIMARY KEY (`table_id`);
--
-- Indexes for table `tax_table`
--
ALTER TABLE `tax_table`
ADD PRIMARY KEY (`tax_id`);
--
-- Indexes for table `user_table`
--
ALTER TABLE `user_table`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `order_item_table`
--
ALTER TABLE `order_item_table`
MODIFY `order_item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `order_table`
--
ALTER TABLE `order_table`
MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `order_tax_table`
--
ALTER TABLE `order_tax_table`
MODIFY `order_tax_table_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `product_category_table`
--
ALTER TABLE `product_category_table`
MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `product_table`
--
ALTER TABLE `product_table`
MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `restaurant_table`
--
ALTER TABLE `restaurant_table`
MODIFY `restaurant_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `table_data`
--
ALTER TABLE `table_data`
MODIFY `table_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `tax_table`
--
ALTER TABLE `tax_table`
MODIFY `tax_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `user_table`
--
ALTER TABLE `user_table`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
So before using source code in your local computer first you have to set up database in your local phpmyadmin and then after you can run this PHP Restaurant Management System in your local computer and you can check the whole feature of this Restuarant Management System. But before check this system in your local computer first you have to check the demo of this system. So you can understand the functionality of this system and then after you can check this system in your local computer. With this post you can find demo link of this Restaurant Management System and when you login into demo link Restaurant Management System you can find source code download link. So from demo you can find the complete source code of this Restaurant Management System in PHP.
If you have any query or inputs regarding this PHP Restaurant Management System, you can write in comment box, we will reply on your comment.
https://www.webslesson.info/2020/12/restaurant-management-system-in-php.html
Posting Komentar untuk "Restaurant Management System in PHP With Source Code"