Cab Management System in PHP/OOP Free Source Code

Language

Introduction

This is a simple project entitled Cab Management System. This project was written in PHP/OOP and data are stored in a MySQL Database. This project is a web-based application that provides an online cab booking platform for the commuter. This application can also help cab operator's drivers to have an efficient and effective way for them to find a possible commuter. The application is easy to use and has user-friendly features and functionalities. It also has a simple and pleasant user interface to give end-users a better experience while using the web application.

About the Cab Management System

I developed this project using the following:

  • XAMPP v3.3.0 as my local webserver that has a PHP Version 8.0.7
  • PHP Language
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap
  • AdminLTE

The Cab Management System Project has 3 sides of the user interface. It has a side for Management, Clients/Commuter, and Drivers. Each of the user groups has different restrictions to each other.

The Management Side is the side of the system where the management can manage and access all the data in the system. This side is mainly for managing the cab, clients, and driver list. There 2 types of user roles who can access this side which are the Administrators and the Staff. The Administrators are the ones who have the privilege to manage and access all features and functionalities that the said side of the system has. While the Staff users have only limited access.

The Client-Side is the side of the system for the public/commuters/possible commuters. This side has a registration form where the clients can create their accounts to access more features of the said side. The registered client can book a cab, list their cab bookings, and cancel a booked cab. The clients can simply select a cab from the available cabs. To book a cab, the client will simply select or click the cab details container and the cab booking form will be shown. He/she will enter his/her pickup and drop-off location. Commuters are only allowed to cancel the booking if it is still on pending status.

The Driver-Side is the side of the system for the cab drivers. This side will allow the drivers to be informed if commuters booked them. They can update the status of clients booking to Confirmed, Picked Up, and Dropped off.

Features

Management-Side

  • Secure Login and Logout
  • Dashboard
    • Display the summary of lists.
  • Cab Category Management
    • Add New Category
    • List All Categories
    • View Category
    • Update Category
    • Delete Category
  • Cab Management
    • Add New Cab with Drivers Account and Details
    • List All Cabs
    • View Cab and Driver details
    • Update Cab Details and Driver Details/Credentials
    • Delete Cab
  • Clients Management
    • List All Clients
    • View Client
    • Update Client Details/Credentials
    • Delete Client
  • Bookings
    • List All Bookings
    • View Booking Details
  • Manage User List (CRUD)
  • Manage Account Details/Credentials
  • Manage System Information

Driver-Side

  • Secure Login/Logout
  • List All Bookings
  • View Booking Details
  • Update Booking Status
  • Manage Account Details/Credentials
  • Logout

Client-Side

  • Secure Login and Registration
  • Read 'Welcome' Content
  • Read 'About Us' Content
  • List All Available Cab
  • Book a Cab
  • Cancel Booking
  • Manage Account Details/Credentials
  • Logout

System Snapshots of some Features

Public Home Page
Cab Management System
Booking List (Client/Driver-Side)
Cab Management System
Booking Details (Client/Driver-Side)
Cab Management System
Management Dashboard
Cab Management System
Cab & Driver Details (Management-Side)
Cab Management System

How to Run ??

Requirements

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

Installation/Setup

  1. Enable or Uncomment the GD Library on your php.ini file.
  2. Open your XAMPP/WAMP's Control Panel and start Apache and MySQL.
  3. Extract the downloaded source code zip file.
  4. 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.
  5. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  6. Create a new database naming cms_db.
  7. Import the provided SQL file. The file is known as cms_db.sql located inside the database folder.
  8. Browse the Cab Management System in a browser. i.e. http://localhost/cms/.

Default Admin Access

Username: admin
Password: admin123

Sample Driver Access

Username: 202202-00001
Password: gwilliams123

Sample Client Access

Username: [email protected]
Password: cblake123

DEMO VIDEO

That's it. You can now explore the features and functionalities of this Cab Management System in PHP. I hope this project 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 SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

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.

Comments

Hello, i think there is not the right database in the zip .. can u check it pls ..?

Thanks for your amazing support. The kindest i've ever seen. Gracias

Hello, i think there is not the right database in the zip .. can u check it pls ..?

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in C:\xampp\htdocs\cms\classes\SystemSettings.php:17 Stack trace: #0 C:\xampp\htdocs\cms\classes\SystemSettings.php(136): SystemSettings->load_system_info() #1 C:\xampp\htdocs\cms\config.php(9): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\cms\index.php(1): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\cms\classes\SystemSettings.php on line 17 Showing this error. Can you help me?

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in C:\xampp\htdocs\cms\classes\SystemSettings.php:17 Stack trace: #0 C:\xampp\htdocs\cms\classes\SystemSettings.php(136): SystemSettings->load_system_info() #1 C:\xampp\htdocs\cms\config.php(9): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\cms\index.php(1): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\cms\classes\SystemSettings.php on line 17 Can you help me?

the db script has problems? Error SQL query: ALTER TABLE `client_list` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`) USING HASH MySQL said: Documentation #1170 - BLOB/TEXT column 'email' used in key specification without a key length

Where is source code

hello! I just downloaded the source code, but apparently the style is not correctly included, I see no pictures... can you help me please

Please Help Me:- C:\xampp\htdocs\cms\classes\DBConnection.php on line 18 pls tell me what's the error in line 18.

how to remove the watermark?

very good

Multiple SQLi

Add new comment