How horacioquijano/horion-time works
HORION TIME is a multi-company workforce attendance and time-management system. Employees authenticate, record attendance—with the web flow checking location and facial descriptors—and review their records; administrators manage schedules and requests, while supervisors approve employee matters. Reporting, dashboards, audit, notifications, kiosks, and a JWT-protected API support that core workflow. The sampled source confirms the web dispatch, attendance and schedule paths, API login and attendance behavior, database connection, and notification engines; other documented modules are represented from the README and tree, without asserting unverified wiring.
Main entry points: Database.php MySQL database · index.php Web application · api.php REST API · AsistenciaController.php Attendance
Components 26
Application entry
- Web application
public/index.php - REST API
public/api.php
Attendance and scheduling
- Attendance
app/Controllers/AsistenciaController.php - API attendance
app/Controllers/Api/AsistenciaApiController.php - Attendance data
app/Models/AsistenciaModel.php - Schedules and shifts
app/Controllers/HorarioController.php - Schedule data
app/Models/HorarioModel.php
Employee workflows
- Employee requests
app/Controllers/NovedadController.php - Overtime
app/Controllers/HoraExtraController.php - Employee portal
app/Controllers/PortalController.php - Attendance kiosk
app/Controllers/KioscoController.php - Supervisor portal
app/Controllers/SupervisorController.php
Management and insights
- Dashboard
app/Controllers/DashboardController.php - Reports
app/Controllers/ReporteController.php - API reports
app/Controllers/Api/ReportesApiController.php - Audit
app/Controllers/AuditoriaController.php - Companies and sites
app/Controllers/EmpresaController.php - Rules and settings
app/Controllers/ConfiguracionController.php
Shared platform
- Notification engine
app/Services/NotificationEngine.php - Alert rules
app/Services/AlertRulesEngine.php - API authentication
app/Controllers/Api/AuthApiController.php - API auth middleware
app/Middleware/ApiAuth.php - MySQL database
app/config/Database.php
Other components
- Employee
- Administrator
- Supervisor
Connections 21
- Employee → Web application: uses
- Administrator → Web application: manages
- Supervisor → Web application: reviews
- Web application → Attendance: dispatches
- Web application → Schedules and shifts: dispatches
- Attendance → Attendance data: calls
- Attendance → MySQL database: queries
- Attendance data → MySQL database: reads and writes
- Schedules and shifts → Schedule data: calls
- Schedules and shifts → MySQL database: queries
- Employee → REST API: uses
- REST API → API authentication: dispatches
- REST API → API attendance: dispatches
- REST API → API reports: dispatches
- API authentication → MySQL database: reads and writes
- API authentication → API auth middleware: authenticates
- API attendance → Attendance data: calls
- API attendance → MySQL database: queries
- API reports → MySQL database: queries
- Alert rules → Notification engine: sends and queues
- Notification engine → MySQL database: stores queue