Marle Hotel Management System
Case study — 01



01 — The brief
Marle Hotel & Restaurant is a small hotel in Sabutan Ibayo, Silang, Cavite. Guests book a room by the night or by the hour, pay a 50% deposit, and manage the rest of their stay from a phone.
This is the system built for it, as my undergraduate capstone: one codebase covering the front desk, the managers and the owner.
02 — Three doors, one system
The public site handles live availability, a validated booking form, and a private booking-status page keyed by a token, so a guest never needs an account to check or cancel their stay.
Staff sign in once and land in the console their role allows: the manager approves bookings and verifies deposits, the front desk runs the calendar and requests, the owner gets everything plus settings and backups. A manager's session cannot open the owner's screens.
03 — Reviews that get read
Guest reviews are easy to collect and easy to ignore. Each one is scored by a Groq-hosted LLM for sentiment and grouped by theme — cleanliness, staff, food, value — then summarized into a themed report with suggested actions.
The integration is optional. Leave the key empty and the reviews still collect; only the analysis stays off, so the app never depends on a paid service to run.
04 — Built for shared hosting
No framework, no Composer, no build step — plain PHP 8 with mysqli prepared statements and MySQL, deployable on ordinary shared hosting. Configuration lives in one file, with environment variables taking priority.
The security work is the part I care most about: hashed passwords with a policy and a login lockout, CSRF tokens on every staff mutation, uploads stored behind their own deny rules, and a database outage that answers with a plain 503 instead of a stack trace.
Features
- Nightly and hourly bookings with live availability per room and room type
- GCash / bank-transfer deposits with proof-of-payment upload, verified by a manager before the room is confirmed
- Guest portal behind a status token — live chat, food orders, service requests, stay extensions, running bill
- Three consoles (manager, front desk, owner) isolated by directory and by exact role
- AI review sentiment analysis via Groq, grouped by theme into a report and action plan
- Booking calendar, no-show and auto-checkout handling, printable receipts, activity log
- Prepared statements, CSRF tokens, login lockout and hardened uploads throughout