Directory layout and file descriptions
/home/test/ ├── index.php # Success landing page ├── PROJECT.md # Project overview ├── CHANGELOG.md # Change history ├── TODO.md # Pending tasks ├── MEMORY.md # Conversation memory ├── manifest.json # PWA manifest ├── sw.js # Service worker ├── includes/ │ ├── security.php # Security headers + CSP │ └── functions.php # Shared utilities ├── assets/ │ ├── css/app.css # Shared stylesheet (dark/light) │ ├── js/app.js # Theme toggle + SW registration │ └── icons/ # PWA icons ├── api/ │ ├── index.php # API router │ ├── bootstrap.php # API bootstrap │ └── endpoints/ # API endpoint handlers │ ├── health.php │ ├── status.php │ └── routes.php ├── help/ # Public documentation └── screenshots/ # QA screenshots
| includes/security.php | Sets all security headers (CSP, HSTS, X-Frame-Options, etc.) |
| includes/functions.php | Shared utilities: e(), json_response(), CSRF, rate limiting |
| assets/css/app.css | Shared styles with CSS custom properties for dark/light mode |
| assets/js/app.js | Theme toggle, localStorage persistence, service worker registration |
| api/index.php | API router with method + path matching |
| api/bootstrap.php | Includes security + functions for all API endpoints |