CFPT Car Rental
CFPT Car Rental, a PHP school project with a custom MVC router and SQLite: vehicle catalogue with filters, online booking and admin dashboard.
About the project
A car rental web application, developed as a school project at CFPT Informatique, that lets visitors browse a vehicle catalogue, filter it and book a car online. It is built in PHP with a custom MVC structure — a front controller, a small router with dynamic URL parameters, controllers, models and views — and Composer PSR-4 autoloading.
Visitors can filter the fleet by category, transmission, fuel type and maximum price, and open a detail page with each vehicle's technical specifications and a live price estimate. The booking form validates the dates, calculates the number of days and the total price on the server, and confirms the reservation with a generated booking reference (for example ERDI-4F7A2C) and a printable booking receipt.
Data is stored in SQLite through PDO; when the SQLite driver is not available, the application falls back to JSON files. An administration page shows key figures — vehicles, available vehicles, bookings and estimated revenue — lists the bookings and provides a form to add new vehicles.
What it does
- Vehicle catalogue with filters (category, transmission, fuel, maximum price)
- Vehicle detail pages with technical specifications
- Live price estimate while choosing dates
- Online booking form with date validation
- Server-side calculation of rental days and total price
- Generated booking reference and printable booking receipt
- Admin dashboard with key statistics and booking list
- SQLite storage with automatic JSON fallback
Problems to solve
- Building the routing without a framework: mapping clean URLs with dynamic parameters such as /cars/{id} to controller actions through a single front controller.
- Keeping the application usable on any PHP setup by falling back to JSON storage when the SQLite PDO driver is not installed.
- Calculating the rental duration and total price on the server, with date validation, so the amount does not depend on values sent by the browser.
Internship, apprenticeship or junior role? Let's talk.
I'm looking for an internship, an apprenticeship or a junior developer position, and I'm also open to selected freelance projects. Feel free to get in touch.