Quert Alfonso M. Villafuerte
← all projects

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.

phpmysqlstripejavascriptbootstraptailwind css

inside the project

3 captures · click an image to enlarge

Original PHP homepage running locally: hotel photography, navigation, and the booking entry point. Demo hotel content.
Original homepage suite cards with demo room descriptions and nightly prices.
Original homepage event spaces for weddings and corporate retreats. Demo hotel content.

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

01

Hotel discovery

A photographic landing page introduces suites, dining, amenities, and event spaces. Room listings are backed by MySQL and grouped by room type.

02

Reservation workflow

Booking handlers calculate room-night totals and a 75% down payment, generate booking codes, and store pending reservations for review.

03

Stripe integration

The PHP backend creates PaymentIntents with manual capture. Admin handlers include confirmation, capture, and cancellation paths tied to booking status.

04

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. 1.

    Browse the hotel, room types, and event spaces.

  2. 2.

    Sign in and choose reservation dates.

  3. 3.

    Submit the booking through the demo payment flow.

  4. 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.