How rayhan-bin-maleque/rent-a-car-management-system works
Rent A CAR is a PHP/MySQL rental-management application organized around role-based MVC-style routes. Requests enter through index.php, dispatch to authentication or a role controller, and use domain models for booking, vehicle, user, payment, maintenance, and log operations. The principal customer workflow is browse/search → request a booking → pay → view a receipt; managers approve bookings and manage cars, while staff verify vehicle operations and record maintenance. The source excerpts show several controller/model calls and direct SQL access; README-documented capabilities with unsampled implementation are represented without asserting unverified calls.
Main entry points: index.php Request router · customer_controller.php Customer workflow · admin_controller.php Administration · staff_controller.php Staff operations
Components 25
Request and access
- Request router
index.php - Authentication
controllers/auth_controller.php - Session helpers
helpers/helpers.php
Rental operations
- Customer workflow
controllers/customer_controller.php - Manager operations
controllers/manager_controller.php - Staff operations
controllers/staff_controller.php - Administration
controllers/admin_controller.php - AJAX searches
controllers/ajax_controller.php
Domain data
- Bookings
models/booking_model.php - Car inventory
models/car_model.php - User accounts
models/user_model.php - Payments
models/payment_model.php - Maintenance records
models/maintenance_model.php - Activity logs
models/log_model.php - MySQL connection
config/database.php
Role views
- Customer screens
views/customer - Manager screens
views/manager - Staff screens
views/staff - Admin screens
views/admin - Login and registration
views/auth
Other components
- Customer
- Administrator
- Manager
- Staff
- MySQL database
Connections 38
- Customer → Request router: requests
README.md - Administrator → Request router: requests
README.md - Manager → Request router: requests
README.md - Staff → Request router: requests
README.md - Request router → Authentication: dispatches
index.php - Request router → Administration: dispatches
index.php - Request router → Manager operations: dispatches
index.php - Request router → Staff operations: dispatches
index.php - Request router → Customer workflow: dispatches
index.php - Request router → AJAX searches: dispatches
index.php - Request router → MySQL connection: loads
index.php - MySQL connection → MySQL database: connects
config/database.php - Authentication → User accounts: authenticates
controllers/auth_controller.php - Authentication → Activity logs: records activity
controllers/auth_controller.php - Authentication → Login and registration: renders
controllers/auth_controller.php - Customer workflow → Bookings: creates and reads
controllers/customer_controller.php - Customer workflow → Car inventory: checks availability
controllers/customer_controller.php - Customer workflow → Payments: creates and reads
controllers/customer_controller.php - Customer workflow → Customer screens: renders
controllers/customer_controller.php - Manager operations → Car inventory: manages
controllers/manager_controller.php - Manager operations → Bookings: reviews
controllers/manager_controller.php - Manager operations → Manager screens: renders
controllers/manager_controller.php - Staff operations → Bookings: verifies operations
controllers/staff_controller.php - Staff operations → Car inventory: updates status
controllers/staff_controller.php - Staff operations → Maintenance records: records service
controllers/staff_controller.php - Staff operations → Payments: reads records
controllers/staff_controller.php - Staff operations → Staff screens: renders
controllers/staff_controller.php - Administration → User accounts: manages
controllers/admin_controller.php - Administration → Car inventory: reads inventory
controllers/admin_controller.php - Administration → Bookings: reads bookings
controllers/admin_controller.php - Administration → Payments: reads payments
controllers/admin_controller.php - Administration → Activity logs: reads logs
controllers/admin_controller.php - Administration → Admin screens: renders
controllers/admin_controller.php - AJAX searches → Car inventory: searches
controllers/ajax_controller.php - AJAX searches → Activity logs: searches
controllers/ajax_controller.php - Bookings → Car inventory: looks up vehicle
models/booking_model.php - Customer workflow → Manager operations: booking lifecycle
README.md - Customer workflow → Staff operations: pickup and return
README.md