Project Source Codeby monoed.africa

Car Wash Management System: a worked example in PHP and MySQL

A local Car Wash Management System for a university. Managers configure services and prices, attendants track vehicles and bookings from arrival to completion, and cashiers record payment. All data is stored in MySQL via PHP and works fully offline.

This is a real system made by the same builder you would use, for the topic “Design and Implementation of a Car Wash Management System”. It is shown as an example. Yours is built for your own topic and your own answers, so its screens, tables and rules will differ. The source code on this page is not for download.

The problem it solves

A busy car wash needs a simple way to record customer vehicles, track each wash from waiting to completed, prevent double-booking a vehicle, handle payment, and give managers daily totals and printable reports without internet.

Who uses it

manager

Runs the car wash. Sets services and prices, manages staff accounts, and sees all records, totals and reports.

  • Add, edit and remove wash services and prices
  • Create, view, update and cancel all bookings
  • Record payments
  • View, edit and deactivate staff accounts
  • View daily totals, charts and printable reports

attendant

Handles vehicles arriving at the wash. Records customer and vehicle details, creates bookings and moves jobs through the wash stages.

  • Record a customer and vehicle
  • Create a booking for a service
  • Update booking status: Waiting, In progress, Completed
  • View the bookings list and own daily counts

cashier

Takes payment when a wash is completed and records the transaction.

  • View completed jobs awaiting payment
  • Record payment after a job is completed
  • View today's money taken

What it does

  • Login and Roles

    Secure login with hashed passwords, session regeneration, CSRF protection and role-based access. Manager, attendant and cashier see only their allowed menus and actions.

  • Vehicles and Customers

    Attendants record customer name and phone, and vehicle plate number, make, colour and owner. Manager can view and edit all records. Plate numbers are unique.

  • Wash Bookings

    Attendants create a booking for a vehicle and service, defaulting to Waiting. They assign a washer and move the job to In progress and Completed. Manager can cancel a booking. The list filters by plate number, date and status, with pagination. The main rule prevents a vehicle from having two active bookings.

  • Payment Recording

    Cashier records payment for a completed job, choosing cash or simulated card. The payment amount is the booking amount. Today's money taken is shown. Receipts are simulated and printable.

  • Services and Prices

    Manager adds, edits and removes wash services, including Exterior wash, Full wash, Interior cleaning and Polish and wax, each with a price in Naira.

  • Daily Report and Chart

    Manager sees cars washed today, money taken today, and a bar chart of washes each day for the last seven days. A printable daily report lists completed bookings and payment totals.

Screens

Screenshots of the running system, taken by our checks. The records are sample data and are labelled so on each page.

Car Wash Management System: Bookings
Main list of bookings with plate number, date and status filters, and the booking form side by side. Attendants move jobs through Waiting, In progress, and Completed.
Car Wash Management System: Vehicles and Customers
Record a customer and vehicle before creating a booking. Shows sample customer and vehicle records.
Car Wash Management System: Payments
Cashier records payment for completed jobs and sees today's money taken. Payment methods are simulated.
Car Wash Management System: Services and Prices
Manager sets the wash services and their prices.
Car Wash Management System: Daily Report
Printable daily report with cars washed, money taken, and a seven-day bar chart.
Car Wash Management System: Manage Users
Manager maintains staff accounts, including changing roles and resetting passwords.

Database tables

  • usersStaff accounts for login and role-based access.id, username, password_hash, full_name, role, active, created_at
  • customersCustomer details for vehicle ownership.id, full_name, phone, created_at
  • vehiclesVehicles washed at the car wash.id, plate_number, make, colour, customer_id, created_at
  • servicesWash services and prices set by the manager.id, name, price, active, created_at
  • bookingsWash jobs from arrival to completion.id, vehicle_id, service_id, attendant_id, status, amount, created_at, updated_at
  • paymentsPayments recorded for completed bookings.id, booking_id, cashier_id, amount, method, created_at
  • settingsSmall key and value store, including the sample data label flag.setting_key, setting_value

Built with

  • PHP. It ships with XAMPP, runs without internet and is the language chosen for this project.
  • PDO with the MySQL driver. Placeholders keep user input out of the SQL text, and transactions and row locks protect a vehicle from double-booking.
  • MariaDB / MySQL. It is the database bundled with XAMPP and needs no internet.
  • Bootstrap. Gives a clean page on desktop and phone without a CDN.
  • Chart.js. Charts the daily report offline from the bundled file.

How to run it: running a PHP project on XAMPP. Not sure which language to pick? Python or PHP.

How it was tested

75 of 75 tests passed, 75 of them automated. The system was also installed from scratch and every screen was opened as the right kind of user before it was accepted.

What it does not do

  • Card payment and receipts are simulated, not real transactions.
  • SMS notices are not sent.
  • Parts inventory, stock, payroll and multiple branches are out of scope.
  • There is no customer self-service portal.
  • The database connection defaults to root with an empty password and is meant for one local XAMPP machine.
  • Concurrent load and very large data sets have not been tested.

Want a car wash management system for your own school or business case?

Type your topic as your department approved it. You answer a few questions and read the full plan free. It costs ₦13,500 only if you want it built, with a guide, defence questions and screenshots.

Start with this topic