How jadoniyonkuru/attendance-system works
This is a PHP/MySQL multi-branch attendance application. Admins establish branches and managers; managers create employees and register their face descriptors; employees use browser-based face recognition and geolocation to check in or out, with server-side face, branch-radius, and work-time checks. Attendance can also be listed and swept for automatic checkout. The graph follows documented workflows and indexed source references; some page-to-client wiring is documented in the README rather than shown in the excerpts.
Main entry points: db.php PDO access · camera.js Browser camera · index.php Sign-in · verify_checkin.php Check-in verification
Components 20
Accounts and roles
- Sign-in
public/index.php - Session and roles
src/auth.php - Manager registration
public/register_manager.php - Employee registration
public/register_employee.php - Face enrollment
public/api/save_face.php - Browser camera
public/js/camera.js - Recognition models
public/models
Branch setup
- Branch registration
public/register_branch.php - Role dashboard
public/dashboard.php
Attendance workflow
- Check-in page
public/checkin.php - Check-in verification
public/api/verify_checkin.php - Attendance list
public/attendance_list.php - Auto-checkout sweep
public/api/auto_checkout.php
Shared runtime
- Geofence and matching
src/helpers.php - Runtime configuration
config.php - PDO access
src/db.php - MySQL data
schema.sql
Other components
- Admin
- Manager
- Employee
Connections 24
- Employee → Sign-in: signs in
README.md - Manager → Sign-in: signs in
README.md - Admin → Sign-in: signs in
README.md - Sign-in → Session and roles: starts session
public/index.php - Sign-in → Role dashboard: redirects
public/index.php - Admin → Branch registration: registers branch
README.md - Admin → Manager registration: registers manager
README.md - Manager → Employee registration: registers employee
README.md - Employee registration → Browser camera: loads
README.md - Browser camera → Recognition models: loads models
README.md - Browser camera → Face enrollment: sends descriptor
README.md - Manager → Face enrollment: enrolls face
README.md - Employee → Check-in page: opens attendance
README.md - Check-in page → Browser camera: uses
README.md - Browser camera → Check-in verification: sends descriptor and location
README.md - Check-in verification → Geofence and matching: checks face and radius
public/api/verify_checkin.php - Check-in verification → Runtime configuration: reads work rules
public/api/verify_checkin.php - Check-in verification → PDO access: reads and writes
public/api/verify_checkin.php - Geofence and matching → PDO access: loads branch
src/helpers.php - Geofence and matching → Runtime configuration: reads threshold
src/helpers.php - Attendance list → PDO access: queries records
public/attendance_list.php - Auto-checkout sweep → PDO access: updates attendance
public/api/auto_checkout.php - PDO access → Runtime configuration: reads credentials
src/db.php - PDO access → MySQL data: connects
README.md