Payroll & Accounting System
Internal payroll and timekeeping system for an HVAC services business: mobile clock in/out, automatic weekly payroll, 13th-month pay, statutory deductions, and an employee self-service dashboard.
The problem
My family’s HVAC business, Coronacion Refrigeration & Aircon Services, ran on a bundy clock and paper timecards. Pay for around 15 staff was worked out by hand every week. That meant manually applying the late rule (10+ minutes late counts as late and rounds up to a full hour), overtime past 5:00 PM counted to the minute, Sunday duty by rotation at 130%, holiday pay (130% on special days, double on regular holidays), and SSS/PhilHealth/Pag-IBIG contributions split across the month’s paydays. Every one of those steps could go wrong, and nobody had a record of who changed what. Now staff clock in and out from their own phones. Punches with low GPS accuracy, a location outside the expected area or a changed IP get flagged for review. Weekly payroll and 13th-month pay are computed and approved in the system, and employees can see their own payslips, late/OT history and salary progression. Every sensitive change is audit-logged, with government IDs redacted.
Why this stack
PHP with a Controller → Service → Repository layering, so pay rules like late rounding, auto-OT, holiday multipliers and deduction carryovers live in services rather than controllers. That makes them easy to test and change when the owner updates a policy. MySQL with PDO prepared statements and transactional writes, so creating an employee or computing payroll either succeeds completely or doesn’t save anything. Vanilla JS and Tailwind keep the UI light enough for staff clocking in on low-end phones. It’s deployed on Hostinger with hardened config: HTTPS forced, internal directories blocked, credentials in a git-ignored env file, and production errors hidden.