How roy-heinrich/sw-assessment works
Southwest Tours is a PHP booking manifest for staff to manage passenger transfers: submit or edit bookings, search/filter and page through active or archived records, change status, and restore or permanently delete. The single HTTP entry point dispatches actions, validates input, calls the repository, and renders full-page or HTMX responses. Repository excerpts establish persistence and view relationships; the README documents the broader workflow and database setup. Some view and routing details are unsampled, so the graph omits unverified links.
Main entry points: index.php Request dispatcher · Database.php Connection and schema · layout.php Manifest layout · table.php Booking table
Components 15
Booking workflow
- Request dispatcher
index.php
Booking domain
- Booking validation
src/BookingInput.php - Guest name formatting
src/GuestName.php
Persistence
- Booking operations
src/BookingRepository.php - Connection and schema
src/Database.php - Bookings database
Staff interface
- Manifest layout
views/layout.php - Booking form
views/form_modal.php - Action confirmation
views/confirm_modal.php - Booking table
views/table.php - Booking statistics
views/stats.php - Notifications
views/flash.php
Other components
- Staff
- PostgreSQL
- SQLite
Connections 19
- Staff → Request dispatcher: submits requests
README.md - Request dispatcher → Booking validation: validates input
index.php - Request dispatcher → Booking operations: dispatches actions
index.php - Request dispatcher → Booking form: renders form
index.php - Request dispatcher → Action confirmation: renders confirmation
index.php - Request dispatcher → Manifest layout: renders page
index.php - Request dispatcher → Booking table: renders results
index.php - Request dispatcher → Booking statistics: renders counts
index.php - Request dispatcher → Notifications: renders notices
index.php - Booking operations → Connection and schema: gets connection
src/BookingRepository.php - Connection and schema → Bookings database: creates schema
src/Database.php - Connection and schema → PostgreSQL: connects when configured
src/Database.php - Connection and schema → SQLite: uses local fallback
README.md - Request dispatcher → Guest name formatting: formats guest name
index.php - Booking table → Guest name formatting: formats displayed names
views/table.php - Action confirmation → Guest name formatting: formats guest name
views/confirm_modal.php - Manifest layout → Notifications: includes notifications
views/layout.php - Manifest layout → Booking statistics: includes statistics
views/layout.php - Manifest layout → Booking table: includes booking table
views/layout.php