How surya-3699/campuschronicle works
Campus Chronicle is a PHP campus-events platform for students and administrators. Requests enter through the front controller, which dispatches authentication, event discovery and registration, gallery management, notifications, and account features; users then view event, media, and profile results. The map also includes the persistence layer and upload helper. The README is empty, so capabilities are inferred from the source index and excerpts; unsampled controller and view details are represented only where the index documents a relationship.
Main entry points: index.php Request dispatcher · database.php Database connection · EventController.php Event workflows · Registration.php Event registration
Components 21
Request and UI
- Request dispatcher
index.php - Home and user views
app/Views/home.php - Admin views
app/Views/admin
Accounts and security
- Authentication
app/Controllers/AuthController.php - User accounts
app/Models/User.php - Social identity
app/Services/GoogleIdentityService.php - Two-factor security
app/Controllers/TwoFactorController.php
Events and participation
- Event workflows
app/Controllers/EventController.php - Event catalog
app/Models/Event.php - Event registration
app/Models/Registration.php - Certificates
app/Models/Certificate.php
Campus media
- Gallery management
app/Controllers/GalleryController.php - Media management
app/Controllers/GalleryMediaController.php - Gallery albums
app/Models/Gallery.php - Gallery assets
app/Models/GalleryMedia.php - Validated uploads
app/helpers/FileUpload.php
Persistence and services
- Notification access
app/Controllers/NotificationController.php - Notification records
app/Models/Notification.php - Database connection
config/database.php
Other components
- Visitor
- MySQL or MariaDB
Connections 32
- Visitor → Request dispatcher: sends request
index.php - Request dispatcher → Authentication: dispatches auth
index.php - Request dispatcher → Event workflows: dispatches events
index.php - Request dispatcher → Notification access: dispatches notifications
index.php - Request dispatcher → Home and user views: renders pages
index.php - Request dispatcher → Admin views: renders admin
index.php - Authentication → User accounts: authenticates users
app/Controllers/AuthController.php - Authentication → Social identity: delegates identity
app/Controllers/AuthController.php - Request dispatcher → Two-factor security: dispatches security
- Event workflows → Event catalog: manages events
app/Controllers/EventController.php - Event workflows → Event registration: registers attendees
app/Controllers/EventController.php - Event registration → Event catalog: checks event
app/Models/Registration.php - Event registration → Certificates: issues certificate
app/Models/Registration.php - Event workflows → Notification records: broadcasts updates
app/Controllers/EventController.php - Request dispatcher → Gallery management: dispatches galleries
index.php - Gallery management → Gallery albums: manages albums
app/Controllers/GalleryController.php - Gallery management → Gallery assets: loads album media
app/Controllers/GalleryController.php - Request dispatcher → Media management: dispatches media
index.php - Media management → Gallery assets: stores media
app/Controllers/GalleryMediaController.php - Media management → Gallery albums: refreshes counts
app/Controllers/GalleryMediaController.php - Gallery management → Validated uploads: uploads cover
app/Controllers/GalleryController.php - Media management → Validated uploads: uploads assets
app/Controllers/GalleryMediaController.php - Request dispatcher → Notification access: reads alerts
index.php - Notification access → Notification records: loads notifications
app/Controllers/NotificationController.php - Gallery albums → Notification records: publishes alerts
app/Models/Gallery.php - Database connection → MySQL or MariaDB: opens PDO connection
config/database.php - Event catalog → Database connection: connects database
app/Models/Event.php - User accounts → Database connection: connects database
app/Models/User.php - Event registration → Database connection: connects database
app/Models/Registration.php - Gallery albums → Database connection: connects database
app/Models/Gallery.php - Gallery assets → Database connection: connects database
app/Models/GalleryMedia.php - Notification records → Database connection: connects database
app/Models/Notification.php