How ybmprod/coh-pms works
COH-PMS is a municipal venue-hire and property-management web application. Customers browse venues, check availability and pricing, request bookings, submit payments, and receive receipts; staff manage venues, users, pricing rules, booking decisions, payment verification, and reports. The documented MVC-Service architecture routes requests through a single PHP entry point, with services applying domain logic and models accessing MySQL. The graph preserves the documented capability areas; some links rely on README architecture statements or SOURCE INDEX references because their implementation excerpts were not provided.
Main entry points: Router.php Query router · BookingService.php Booking lifecycle · BookingController.php Booking requests · PricingService.php Price calculation
Components 26
Web entry
- Front controller
public/index.php - Query router
app/core/Router.php - Controller guards
app/core/Controller.php
Accounts and administration
- Authentication
app/controllers/AuthController.php - User administration
app/controllers/UserController.php - User records
app/models/User.php
Venue and bookings
- Venue management
app/controllers/VenueController.php - Venue records
app/models/Venue.php - Pricing rules
app/controllers/PricingruleController.php - Price calculation
app/services/PricingService.php - Pricing records
app/models/PricingRule.php - Booking requests
app/controllers/BookingController.php - Availability checks
app/services/AvailabilityService.php - Booking lifecycle
app/services/BookingService.php - Booking records
app/models/Booking.php - Customer portal views
views/customer
Payments and reporting
- Payment verification
app/controllers/PaymentController.php - Payment processing
app/services/PaymentService.php - Payment records
app/models/Payment.php - Reports and dashboard
app/controllers/ReportController.php - Staff dashboard
app/controllers/DashboardController.php - Report calculations
app/services/ReportService.php - Report queries
app/models/Report.php - Staff console views
views/staff
Persistence
- MySQL database
Other components
- Customer or staff
Connections 40
- Customer or staff → Front controller: requests
README.md - Front controller → Query router: dispatches
public/index.php - Query router → Authentication: routes to
README.md - Query router → Booking requests: routes to
README.md - Query router → Venue management: routes to
README.md - Query router → Payment verification: routes to
README.md - Query router → Reports and dashboard: routes to
README.md - Query router → Staff dashboard: routes to
README.md - Authentication → User records: authenticates
app/controllers/AuthController.php - Controller guards → User records: checks account
app/core/Controller.php - User administration → User records: manages
app/controllers/UserController.php - Venue management → Venue records: manages
app/controllers/VenueController.php - Pricing rules → Pricing records: manages
app/controllers/PricingruleController.php - Booking requests → Booking lifecycle: creates or changes
app/controllers/BookingController.php - Booking requests → Availability checks: checks slots
app/controllers/BookingController.php - Booking requests → Price calculation: calculates price
app/controllers/BookingController.php - Booking requests → Customer portal views: renders
README.md - Booking lifecycle → Booking records: updates
app/services/BookingService.php - Booking lifecycle → Availability checks: checks availability
app/services/BookingService.php - Booking lifecycle → Price calculation: calculates charge
app/services/BookingService.php - Booking lifecycle → Venue records: locks venue
app/services/BookingService.php - Availability checks → Booking records: checks conflicts
app/services/AvailabilityService.php - Availability checks → Venue records: reads venue
app/services/AvailabilityService.php - Price calculation → Venue records: reads price
app/services/PricingService.php - Price calculation → Pricing records: loads rules
app/services/PricingService.php - Price calculation → Booking records: uses booking context
app/services/PricingService.php - Payment verification → Payment processing: verifies payment
app/controllers/PaymentController.php - Payment processing → Payment records: records status
app/services/PaymentService.php - Payment processing → Booking records: checks booking
app/services/PaymentService.php - Payment processing → Booking lifecycle: confirms booking
app/services/PaymentService.php - Reports and dashboard → Report calculations: builds reports
app/controllers/ReportController.php - Staff dashboard → Report calculations: loads summary
app/controllers/DashboardController.php - Report calculations → Report queries: queries metrics
app/services/ReportService.php - Reports and dashboard → Staff console views: renders
README.md - User records → MySQL database: reads and writes
app/models/User.php - Venue records → MySQL database: reads and writes
app/models/Venue.php - Booking records → MySQL database: reads and writes
app/models/Booking.php - Payment records → MySQL database: reads and writes
app/models/Payment.php - Pricing records → MySQL database: queries records
README.md - Report queries → MySQL database: queries reports
README.md