How siyusup/web-aplikasi-parkir works
Web Aplikasi Parkir is a PHP/MySQL parking-management app. Staff requests enter through the public front controller and router; the controllers handle login, vehicle entry/exit, dashboard and report requests, using services and repositories for authentication, fee calculation and parking data. Reports are viewable and exportable as PDF, Excel or CSV. The graph preserves the documented export capability, though its individual export implementations are grouped in the sampled controller. Evidence is limited to the README and indexed or excerpted files; unsampled route details are not inferred.
Main entry points: index.php Front controller · ParkirController.php Parking controller · UserController.php User controller · ParkirRepository.php Parking repository
Components 17
Web entry
- Front controller
public/index.php - Router
app/App/Router.php - Login middleware
app/Middleware
Login and access
- User controller
app/Controller/UserController.php - Authentication
app/Service/UserService.php - Cookie and flash
app/Service/SessionService.php
Parking operations
- Parking controller
app/Controller/ParkirController.php - Parking and fees
app/Service/ParkirService.php - Parking record
app/Domain/Parkir.php
Persistence
- Parking repository
app/Repository/ParkirRepository.php - User repository
app/Repository/UserRepository.php - Database connection
app/Config/Database.php - MySQL database
Views and reports
- View renderer
app/App/View.php - Page templates
app/View - Parking reports and exports
app/Controller/ParkirController.php
Other components
- Staff
Connections 21
- Staff → Front controller: sends requests
README.md - Front controller → Router: hands off
public/index.php - Front controller → User controller: configures
public/index.php - Front controller → Parking controller: configures
public/index.php - Front controller → Login middleware: configures
public/index.php - User controller → Authentication: authenticates
app/Controller/UserController.php - User controller → Cookie and flash: sets session
app/Controller/UserController.php - Authentication → User repository: checks credentials
app/Service/UserService.php - Cookie and flash → User repository: loads user
app/Service/SessionService.php - Parking controller → Parking and fees: processes entry and exit
app/Controller/ParkirController.php - Parking controller → Parking repository: queries parking
app/Controller/ParkirController.php - Parking and fees → Parking repository: reads and updates
app/Service/ParkirService.php - Parking and fees → Parking record: creates and updates
app/Service/ParkirService.php - Parking repository → Database connection: gets connection
app/Repository/ParkirRepository.php - User repository → Database connection: gets connection
app/Repository/UserRepository.php - Database connection → MySQL database: connects
app/Config/Database.php - Parking controller → View renderer: renders pages
app/Controller/ParkirController.php - User controller → View renderer: renders pages
app/Controller/UserController.php - View renderer → Page templates: includes templates
app/App/View.php - Parking controller → Parking reports and exports: generates PDF, Excel, CSV
README.md - Parking reports and exports → Parking repository: fetches report rows
app/Controller/ParkirController.php