How lukw07/zskam works
Project Type & Purpose
• This is a monolithic full-stack PHP web application for managing IT incidents and equipment reservations at a school.
• Key user flows: login/authentication, incident reporting & tracking, equipment reservation, administrative dashboards, email notifications.
File Structure
• Top-level PHP entry points (index.php, dashboard.php, admin.php, reservation.php, etc.) each correspond to a functional module.
• Shared includes:
• config.php (SMTP, DB credentials)
• db.php (MySQL connection)
• navbar.php (UI navigation)
• Assets: styles.css, auto_refresh.js
• Dependencies: vendor/ (Composer libraries)
• Deployment helper: deploy.py
• Database schema script: zskamenicka_rezv.sql
Extract Key Architectural Insights from README
• LAMP stack: PHP 7.4+, MySQL 5.7+, Apache/Nginx (implicit).
• Uses prepared statements, password_hash(), SMTP for emails.
• Monolithic codebase without microservices; logical separation by PHP script.
Main Components
a. Client Layer
• Web Browser (HTML/CSS/JS)
b. Web & Application Layer
• Web Server (Apache/Nginx) hosting PHP
• Authentication (index.php, auth.php, logout.php)
• Incident Management (dashboard.php, history.php, admin_issues.php, mark_read.php)
• Reservation Module (reservation.php, delete_reservation.php, admin_devices.php)
• Administration (admin.php, settings.php, statistics.php)
• Shared Services (config.php, db.php, navbar.php, vendor/)
• Notification Service (email sender via SMTP logic in PHP scripts)
c. Data Layer
• MySQL Database (schema imported from zskamenicka_rezv.sql)
• Optional: File System storage (uploads/) if attachments are used
d. External Services
• SMTP Server (for email notifications)
Relationships & Data Flows
• Browser → HTTP(S) → Web Server
• Web Server → invokes PHP application modules
• Application modules → SQL queries → MySQL
• Application modules → SMTP protocol → Email server
Architectural Patterns & Principles
• Layered architecture: Presentation → Business Logic → Data Access
• Monolith separated by functional modules (no separate microservices)
• Security best-practices: hashed passwords, prepared statements, input validation
Technologies & Frameworks
• PHP 7.4+, Composer packages (vendor/)
• MySQL 5.7+
• Frontend: CSS, vanilla JS (auto_refresh.js)
• Deployment: Python script (deploy.py), Dockerfile if containerized