Attendance Management System in PHP & MySQL with Biometric Fingerprint | Free Source Code
Coding Cush
0:00 / 0:00
Attendance Management System in PHP & MySQL with Biometric Fingerprint | Free Source Code
29 просмотров · 2 дн. назад
Coding Cush
1,38 тыс. подписчиков
29 просмотров · 2 дн. назад
A complete Attendance Management System built in PHP and MySQL — with biometric fingerprint punching, a punch kiosk, employees and departments, leave approvals, a holiday calendar, a monthly register for payroll and a REST API for biometric terminals. This is a project demo (no voice-over) — watch the app in action, then download the free source code and run it on XAMPP in minutes.
What is a biometric attendance management system?
It's a web application that records when employees arrive and leave using their fingerprint. The first scan of the day is the check-in and the second is the check-out. The system works out who was present, late, on a half day, absent or on leave, and turns that into a monthly register HR can export for payroll.
How does a fingerprint scanner connect to a PHP website?
A browser can't read a USB fingerprint scanner directly. On a PC, the scanner's local service (for example the Mantra MFS100 RD Service) captures the finger and passes the template to the page, which sends it to the PHP server. Standalone terminals and Android devices call the built-in REST API with their own device API key. A demo simulator lets you test enrol → punch → report with no hardware.
⏱ Chapters
0:00 Intro
0:09 Project overview
0:45 Secure login — Admin and HR roles
1:21 Dashboard — today at a glance
1:53 Employees & departments
2:32 Fingerprint enrolment (up to 4 fingers)
3:27 Punch kiosk — check-in, check-out, late detection
4:48 Daily attendance sheet & manual corrections
5:46 Leave management — approvals flow into attendance
6:36 Holidays & shift rules (grace time, half day)
7:23 Monthly register & CSV export for payroll
8:18 Biometric device API (punch, enrol, heartbeat)
8:57 Roles & security — Admin vs HR
9:37 Under the hood — code & database
10:28 Setup in 5 minutes
✅ Features
• Punch kiosk with live clock — shows the employee's photo, name, time and status instantly
• Fingerprint enrolment — up to 4 fingers per employee with quality score; duplicates across employees blocked
• Employee-code fallback and a demo scan simulator
• Late detection with grace minutes, half-day threshold and automatic working hours
• Sundays, holidays and approved leaves are never counted as absent
• Daily sheet — manual check-in/out, set any status, mark remaining employees absent in one click
• Leaves — Casual, Sick, Earned, Other; approved leave is written into attendance automatically
• Monthly register — employee × day matrix (P / L / HD / A / LV / H / WO) with totals, department filter
• CSV export for payroll (monthly register and daily sheet)
• Device API — punch, enrol and heartbeat endpoints with a per-device X-API-Key
• Admin and HR roles — devices and settings are admin-only, enforced on the server
🛠 Tech stack
Core PHP 8, MySQL / MariaDB, PDO prepared statements, HTML5, CSS3, vanilla JavaScript. No framework — runs on XAMPP, WAMP, LAMP or any shared hosting like Hostinger.
📦 How to run (5 minutes)
1. Download the source code (link below)
2. Import database.sql into phpMyAdmin — it creates all 10 tables, demo accounts and sample data
3. Put the folder in htdocs (XAMPP) or public_html (hosting); edit config/database.php if needed
4. Login as Admin: admin@example.com / Admin@123 — HR: hr@example.com / Hr@12345
5. Set your shift in Settings, enrol fingerprints, then open the Punch Kiosk
❓ FAQ
Q: Is the source code free?
A: Yes — free to download and use in your college project or portfolio.
Q: Does it work with a real fingerprint scanner?
A: Yes. USB scanners like the Mantra MFS100 work through their local RD service on the kiosk PC, and standalone terminals use the REST API. Without a scanner, test everything with the demo simulator.
Q: Can it identify an employee from a fingerprint among many (1:N matching)?
A: The built-in matcher compares the template IDs that devices return. For true 1:N matching across a large workforce, plug in a vendor engine such as SecuGen, Mantra MIS or SourceAFIS — the code has one marked place for it.
Q: How is late or half day decided?
A: Check in after shift start plus grace minutes and you're marked late. If check-in to check-out is below the half-day threshold, the day becomes a half day. Both are set in Settings.
Q: Can I use this as a final year project?
A: Yes — it covers authentication, roles, CRUD, file upload, a REST API and reports, a strong BCA, MCA or B.Tech final year project.
⬇ Download source code + full tutorial: https://codingcush.com/biometric-atte...
🔔 More free PHP projects with source code — Subscribe to CodingCush and check the PHP Projects playlist.
#PHP #MySQL #PHPProject #AttendanceSystem #BiometricAttendance #FingerprintAttendance #FinalYearProject #FreeSourceCode #CodingCush #PHPMySQLProject