CityTrail is a city tourist guide PHP project built with PHP 8 and MySQL for Jaipur, Udaipur, Mumbai, Goa and Varanasi. Every place has timings, entry fee, time needed and best time to visit, a map with nearby places in km, and honest reviews from tourists. Tourists can also book a verified local guide for a morning, evening or full day tour and pay online after the guide accepts.
How it works
- Admin adds cities, categories and places with their exact latitude / longitude and picture.
- Visitors search places by city, category, rating and free entry, and open a place page.
- The place page shows an offline city pin map, a Google Map tab, Get Directions and nearby places within 5 km.
- Tourists write one review per place; the star breakdown and average rating update automatically.
- Local guides register with licence and ID proof; admin approves them before they are visible.
- Tourist books a tour -> guide accepts or declines -> tourist pays (Razorpay test / demo) -> receipt.
- Guide marks the tour completed and the tourist rates the guide.
Users
- Tourist: explore places, write reviews, book tours, pay, rate guides
- Local Guide: tour packages, accept / decline requests, mark completed, ratings
- Admin: places, cities, categories, guide approval, review moderation, bookings, payments, reports
Highlights
- 3 roles, 49 pages (11 public, 12 tourist, 8 guide, 18 admin), 12 database tables
- Offline SVG pin map from latitude / longitude + Google Maps embed and directions
- Nearby places with the Haversine distance formula inside SQL
- One review per tourist per place, 5-to-1 star bars, admin can hide reviews
- No double booking of a guide slot (transaction with row lock)
- Razorpay test mode + demo mode, printable receipt, refund on admin cancel
- Validations on every form (client + server), prepared statements, CSRF, bcrypt passwords
- Demo logins for all roles and full sample data (32 places, 250 reviews, 95 bookings)
What you get
- Complete PHP + MySQL source code with SQL file and sample data
- Project report (54 pages) with 8 diagrams, abstract, explanation with viva Q&A, setup guide (PDF)
- Screenshots of all pages and README with a 10-minute demo script
Who can use this project
BCA, BSc CS / IT, MCA, Diploma and Engineering students (final year or micro project).
Frequently asked questions
Does the map work without internet? Yes, the city pin map is drawn by PHP and works offline; the Google Map tab needs internet. Is real payment needed? No, it uses Razorpay test mode or demo mode, no real money is charged. Can I run it on XAMPP? Yes, copy the folder to htdocs, import the SQL file and open the URL. Is documentation included? Yes, report, abstract, explanation with viva questions and setup guide as PDF.