web development · hotel booking demo · 2025
Alafuenca Hotel
a demo hotel website built with PHP and MySQL: room and event browsing, guest accounts, booking records, and Stripe payment integration with an admin approval workflow.
inside the project
3 captures · click an image to enlarge
why I built it
Bring hotel discovery and reservations into one website, from browsing rooms and event spaces to submitting a booking for staff review.
what it does
Hotel discovery
A photographic landing page introduces suites, dining, amenities, and event spaces. Room listings are backed by MySQL and grouped by room type.
Reservation workflow
Booking handlers calculate room-night totals and a 75% down payment, generate booking codes, and store pending reservations for review.
Stripe integration
The PHP backend creates PaymentIntents with manual capture. Admin handlers include confirmation, capture, and cancellation paths tied to booking status.
Guest and staff views
The code includes session-based accounts, a Google sign-in integration, and administration pages for rooms, events, users, and orders.
the workflow
- 1.
Browse the hotel, room types, and event spaces.
- 2.
Sign in and choose reservation dates.
- 3.
Submit the booking through the demo payment flow.
- 4.
Review the pending reservation from the administration screens.
under the hood
Server-rendered PHP pages use MySQL through PDO and MySQLi. Composer dependencies include the Stripe PHP SDK, Google API client, and PHPMailer. Bootstrap, Tailwind CSS, JavaScript, Swiper, and AOS support the interface.
scope & current state
A demo hotel project, not a live reservation service. Screenshots show the original public-facing pages running locally. Database-backed bookings, Google sign-in, payment capture, and email delivery require separate configuration and were not exercised for this showcase.