How abhiib02/ci4-ems works
This is a CodeIgniter 4 PHP framework distribution containing an employee-management application. The application’s user workflow covers authentication, role-specific dashboards, attendance and leave management, and administrative employee, department, holiday, and salary functions. The framework supplies HTTP routing, controller execution, and shared services beneath those features. The graph combines documented framework behavior with visible application routes and dashboard model calls; unsampled application controllers and framework internals limit some links.
Main entry points: Routes.php App routes · DashboardController.php Dashboards · LeaveController.php Leave workflow · LoginController.php Account access
Components 22
Employee application
- App routes
app/Config/Routes.php - Role guards
app/Filters/AuthGuard.php - Account access
app/Controllers/LoginController.php - Registration
app/Controllers/RegisterController.php - Dashboards
app/Controllers/DashboardController.php - Attendance
app/Controllers/AttendanceController.php - Leave workflow
app/Controllers/LeaveController.php - Leave rules
app/Services/LeaveService.php - HR administration
app/Controllers/DepartmentController.php - Salary operations
app/Controllers/SalaryController.php - Dashboard views
app/Views/dashboard
Request framework
- Web entry
public/index.php - Request runtime
system/CodeIgniter.php - Route dispatch
system/Router/Router.php - Controller base
app/Controllers/BaseController.php
HR data
- User records
app/Models/User.php - Attendance records
app/Models/Attendance.php - Leave records
app/Models/Leave.php - Salary records
app/Models/Salary.php - Holiday records
app/Models/Holiday.php - Department records
app/Models/Department.php
Other components
- Browser user
Connections 25
- Browser user → Web entry: requests page
README.md - Web entry → Request runtime: starts runtime
- Request runtime → Route dispatch: routes request
system/CodeIgniter.php - Route dispatch → App routes: uses route config
- App routes → Account access: routes to
app/Config/Routes.php - App routes → Registration: routes to
app/Config/Routes.php - App routes → Dashboards: routes to
app/Config/Routes.php - App routes → Attendance: routes to
app/Config/Routes.php - App routes → Leave workflow: routes to
app/Config/Routes.php - App routes → Salary operations: routes to
app/Config/Routes.php - App routes → HR administration: routes to
app/Config/Routes.php - App routes → Role guards: applies guard
app/Config/Routes.php - Account access → Controller base: extends
- Dashboards → User records: reads user data
app/Controllers/DashboardController.php - Dashboards → Attendance records: reads attendance
app/Controllers/DashboardController.php - Dashboards → Leave records: reads leave data
app/Controllers/DashboardController.php - Dashboards → Holiday records: reads holidays
app/Controllers/DashboardController.php - Dashboards → Salary records: uses salary data
app/Controllers/DashboardController.php - Dashboards → Department records: uses department data
app/Controllers/DashboardController.php - Dashboards → Dashboard views: renders
app/Controllers/DashboardController.php - Leave workflow → Leave rules: uses rules
- Leave workflow → Leave records: uses leave data
- Attendance → Attendance records: uses attendance data
- Salary operations → Salary records: uses salary data
- HR administration → Department records: uses departments