Ana Sayfa / Kod ve Scriptler / StayBase - Hotel Reservation System PHP

StayBase - Hotel Reservation System PHP

Otel rezervasyonlarını, müsaitliği, misafir hesaplarını, kat hizmetlerini ve performans raporlarını yönetin.

  • Yayın tarihi10 Kasım 2026
  • Nerede çalışırPHP 8.2, PHP 8.3, PHP 8.4
  • VeritabanıMySQL 8.0, SQLite 3.x
  • Paket içeriği.php, .css, .json, .svg, .sql, .md, .yml/.yaml, composer.json, Dockerfile, JavaScript .js
  • Son güncelleme10 Kasım 2026
  • Canlı demoVar
StayBase - Hotel Reservation System PHP

Overview

Hotel front desk with availability search, bookings, folios, housekeeping and ADR/RevPAR reports. StayBase is a complete, self-hosted hotel Reservation System in plain PHP 8.2 — no framework, no Composer runtime dependencies and no build step. Upload the files, run the browser installer, choose SQLite or MySQL, and you are live in minutes.

> Front desk, rooms, rate plans and folios for a small hotel. > Self-hosted PHP 8.2+. No subscriptions, no external services, no build step.

What's inside

  • Rooms — Types, rooms, floor, base rate, status ready/occupied/cleaning/out_of_order
  • Rate plans — Per-night pricing with date ranges and weekday multipliers
  • Reservations — Enquiry → confirmed → checked in → checked out, plus cancelled and no-show
  • Availability — Fortnight grid (rooms × days); overlap refused inside a transaction
  • Folio — Room nights posted automatically, extras, tax, payments; balance derived from ledger
  • Housekeeping — Room status transitions with attendant and timestamp
  • Reports — Occupancy, ADR and RevPAR for any range; arrivals and departures today

Why StayBase

  • Transactional availability check (SELECT ... then INSERT inside one transaction, with a unique stay-overlap guard) — double-booking becomes impossible, not unlikely.
  • Folio with split charges, deposits, no-show policy and per-night rate breakdown; housekeeping board.
  • Occupancy, ADR and RevPAR reporting computed from the folio, not a separate table.

Built to last

  • No framework and no runtime Composer packages — the ZIP is the whole application.
  • SQLite for a zero-config install and MySQL/MariaDB for production, from one migration pair.
  • 34 automated tests covering the money, state-machine, uniqueness and permission rules.
  • English and Chinese interface, dark mode, WCAG AA focus states, usable down to 360 px.
  • CSRF on every POST, prepared statements only, output escaped at the template.

Requirements

  • PHP 8.2 or newer with PDO (pdo_sqlite or pdo_mysql), mbstring, json, openssl and fileinfo.
  • Apache with mod_rewrite or Nginx; document root pointed at public/.
  • SQLite 3 (bundled with PHP) or MySQL 8 / MariaDB 10.4+.
  • Write access to the application root and storage/.

Quick start: upload the ZIP, point the document root at public/, open /install/ and follow the four steps. Docker users can run docker compose up -d --build instead and open the same installer.

Features

• Rooms — Types, rooms, floor, base rate, status ready/occupied/cleaning/out_of_order • Rate plans — Per-night pricing with date ranges and weekday multipliers • Reservations — Enquiry → confirmed → checked in → checked out, plus cancelled and no-show • Availability — Fortnight grid (rooms × days); overlap refused inside a transaction • Folio — Room nights posted automatically, extras, tax, payments; balance derived from ledger • Housekeeping — Room status transitions with attendant and timestamp • Reports — Occupancy, ADR and RevPAR for any range; arrivals and departures today • Self-hosted PHP 8.2 application with no framework and no runtime Composer dependencies • SQLite and MySQL/MariaDB support from one migration pair, with a four-step browser installer • 14 database tables, 45 routes and 34 automated tests • English and Chinese interface, dark mode, WCAG AA focus states, mobile down to 360 px • CSRF protection, prepared statements and escaped output throughout

Requirements

• PHP 8.2 or newer (tested on 8.2, 8.3 and 8.4) • PDO with pdo_sqlite or pdo_mysql • mbstring, json, openssl and fileinfo extensions • Apache with mod_rewrite, or Nginx with a front-controller rule • SQLite 3, or MySQL 8.0 / MariaDB 10.4 and newer • Write access to the application root and storage/ directory • A modern browser; no Node.js, Composer or build tools required