How ibu-web-programming2001/web-programming-2026 works
This repository is a week-by-week PHP teaching project that develops a campus-events web application, alongside standalone PHP exercises and lab variants. The application workflow is for a student to use the browser UI to reach an API operation, where domain services validate and apply event, registration, review, or account rules before accessing persistence. The tree shows those domain areas and their layers, but most routing and service implementations were not sampled; dashed, uncited edges mark relationships that remain unverified. The sampled review service confirms its event and review DAO dependencies.
Main entry points: routes REST routes · dao Other data access · index.php API entry point · ReviewService.php Reviews
Components 21
Browser client
- Web application UI
campus-events-app/week-07/frontend/js/app.js
API and middleware
- API entry point
campus-events-app/week-07/backend/index.php - REST routes
campus-events-app/week-07/backend/rest/routes - Authentication middleware
campus-events-app/week-07/backend/middleware/AuthMiddleware.php - Error middleware
campus-events-app/week-07/backend/middleware/ErrorMiddleware.php - Request logging
campus-events-app/week-07/backend/middleware/RequestLogMiddleware.php
Domain services
- Authentication
campus-events-app/week-07/backend/rest/services/AuthService.php - Event management
campus-events-app/week-07/backend/rest/services/EventService.php - Event registration
campus-events-app/week-07/backend/rest/services/RegistrationService.php - Reviews
campus-events-app/week-08/backend/rest/services/ReviewService.php - Clubs and categories
campus-events-app/week-07/backend/rest/services - Dashboard
campus-events-app/week-07/backend/rest/services/DashboardService.php - Weather integration
campus-events-app/week-07/backend/rest/services/OpenMeteoService.php - Input validation
campus-events-app/week-04/backend/utils/Validator.php
Persistence
- Event data access
campus-events-app/week-04/backend/rest/dao/EventDao.php - Review data access
campus-events-app/week-04/backend/rest/dao/ReviewDao.php - Registration data access
campus-events-app/week-04/lab/lab-tasks-solutions/backend/rest/dao/RegistrationDao.php - Other data access
campus-events-app/week-07/backend/rest/dao
Other components
- Student
- Application database
- Open-Meteo
Connections 26
- Student → Web application UI: uses
- Web application UI → API entry point: requests API
- API entry point → REST routes: dispatches
- REST routes → Authentication middleware: checks access
- REST routes → Authentication: delegates to
- REST routes → Event management: delegates to
- REST routes → Event registration: delegates to
- REST routes → Reviews: delegates to
- REST routes → Clubs and categories: delegates to
- REST routes → Dashboard: delegates to
- REST routes → Weather integration: delegates to
- API entry point → Error middleware: handles errors
- API entry point → Request logging: logs requests
- Reviews → Event data access: checks event
campus-events-app/week-08/backend/rest/services/ReviewService.php - Reviews → Review data access: reads and writes
campus-events-app/week-08/backend/rest/services/ReviewService.php - Reviews → Input validation: validates input
- Event management → Other data access: uses data access
- Event registration → Other data access: uses data access
- Authentication → Other data access: uses data access
- Clubs and categories → Other data access: uses data access
campus-events-app/week-07/backend/rest/services/ReviewService.php - Dashboard → Other data access: uses data access
- Weather integration → Open-Meteo: fetches weather
- Event data access → Application database: queries
- Review data access → Application database: queries
- Registration data access → Application database: queries
- Other data access → Application database: queries