A modern peer-to-peer vehicle rental platform built using PHP (MVC), MySQL, and Bootstrap 5.
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.
PATHEK was developed as a university project focusing on structured software design, MVC architecture, and real-world business logic implementation.
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
- 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
- Configure your own SMTP credentials
- Add your Gmail & App Password inside
SMTP.php
- Add vehicle listings (Pending admin approval)
- Edit and update vehicle details
- Delete vehicle listings
- Upload vehicle images
- Date conflict detection using overlap logic
- Booking status: Pending โ Confirmed / Rejected
- Real-time booking updates for renters
- Owner booking management dashboard
- Owner verification queue
- Vehicle approval system
- Live system statistics
- Full ecosystem management
- Models โ Database interactions
- Controllers โ Business logic
- Views โ Frontend rendering
- 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.
- Bootstrap 5 framework
- Custom Green Branding Theme (#2E6F40)
- Responsive design
- Clean grid-based layout
- External CSS customization
- Modern typography (Outfit font)
- Clone the repository
- Import the SQL file into phpMyAdmin
- Configure
SMTP.phpwith:- Gmail address
- App password
- SMTP configuration
- Run using a local server (XAMPP / WAMP / MAMP)
- 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.
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


