Skip to content

preeyankakc037/vehicle_renting_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš™ Vehicle Renting System (PATHEK)

A modern peer-to-peer vehicle rental platform built using PHP (MVC), MySQL, and Bootstrap 5.


๐Ÿ“Œ Project Definition

PATHEK is a full-stack web-based vehicle rental system designed as a peer-to-peer marketplace where renters can book vehicles, owners can list and manage their vehicles, and admins can control and moderate the entire ecosystem.

The platform implements secure authentication with OTP verification, structured MVC architecture, and a normalized relational database to ensure scalability, security, and clean system design.


๐Ÿ“– Project Description

PATHEK was developed as a university project focusing on structured software design, MVC architecture, and real-world business logic implementation.

๐Ÿ‘ฅ User Roles

The system supports three distinct roles:

  • Admin

    • Controls the entire system
    • Approves vehicles and verifies owners
    • Monitors system statistics
    • Manages users and operations
  • Owner

    • Lists vehicles (Cars, Bikes, Scooters)
    • Performs full CRUD operations
    • Manages bookings
    • Views revenue-related activity
  • Renter

    • Browses available vehicles
    • Books vehicles
    • Manages personal bookings
    • Maintains wishlist and profile

๐Ÿ” Authentication & Security

  • Email-based OTP verification during registration
  • Secure password hashing using password_hash()
  • Role-based session control
  • SQL Injection prevention using prepared statements (bind_param)
  • XSS prevention using htmlspecialchars()
  • Secure SMTP configuration using PHPMailer

โš ๏ธ To run this project, you must:

  • Configure your own SMTP credentials
  • Add your Gmail & App Password inside SMTP.php

๐Ÿš™ Core Functional Features

๐Ÿท๏ธ Vehicle Management (Owner CRUD)

  • Add vehicle listings (Pending admin approval)
  • Edit and update vehicle details
  • Delete vehicle listings
  • Upload vehicle images

๐Ÿ“… Booking Workflow

  • Date conflict detection using overlap logic
  • Booking status: Pending โ†’ Confirmed / Rejected
  • Real-time booking updates for renters
  • Owner booking management dashboard

๐Ÿ› ๏ธ Admin Control Panel

  • Owner verification queue
  • Vehicle approval system
  • Live system statistics
  • Full ecosystem management

๐Ÿง  Technical Architecture

๐Ÿ—๏ธ MVC Pattern

  • Models โ†’ Database interactions
  • Controllers โ†’ Business logic
  • Views โ†’ Frontend rendering

๐Ÿ—„๏ธ Database

  • MySQL (Normalized Schema)
  • Foreign key relationships (User โ†’ Vehicle โ†’ Booking)
  • ER Model based structured design

Database file available in:

/sql/id25123827.sql

Import directly into phpMyAdmin to initialize the system.


๐ŸŽจ UI & Design

  • Bootstrap 5 framework
  • Custom Green Branding Theme (#2E6F40)
  • Responsive design
  • Clean grid-based layout
  • External CSS customization
  • Modern typography (Outfit font)

โš™๏ธ How to Run

  1. Clone the repository
  2. Import the SQL file into phpMyAdmin
  3. Configure SMTP.php with:
    • Gmail address
    • App password
    • SMTP configuration
  4. Run using a local server (XAMPP / WAMP / MAMP)

๐ŸŒŸ What Makes This Project Stand Out?

  • Real multi-role architecture (Admin / Owner / Renter)
  • OTP-based secure registration flow
  • Clean MVC implementation
  • Structured booking conflict detection logic
  • Admin moderation system
  • Full relational database design
  • University-grade system documentation
  • Production-style authentication flow

This is not just CRUD โ€” it simulates a real rental marketplace ecosystem.


๐Ÿท๏ธ Badges

PHP MySQL Bootstrap 5 MVC Architecture PHPMailer OTP Authentication Project Type


๐Ÿ“Œ Summary

PATHEK demonstrates a complete multi-user vehicle rental ecosystem built using PHP and MySQL with secure authentication, booking logic, admin moderation, and clean MVC architecture.

It reflects practical system design, database modeling, and real-world business workflow implementation.


Author: Priyanka Khatri
Project: Vehicle Rental System (PATHEK)
University Project โ€“ Full Stack Development

About

Peer-to-peer vehicle rental platform๐Ÿš™ built with PHP (MVC), MySQL, and Bootstrap 5, featuring secure authentication, booking management, and admin control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors