Skip to content
Hassan Zayyan
← Work Experience

Case study · Sep 2025 – Feb 2026 · Backend Developer (project-based client work)

AGEN (Absensi Gedangan)

Face-recognition attendance for a village office: a Flutter app on a Laravel API that verifies faces in PHP and replaces paper attendance.

Client
Pemerintah Desa Gedangan
Role
Backend Developer (project-based client work): backend, deployment and Flutter contributions, Sep 2025 – Feb 2026
Team
Two people: I built the backend and handled deployment, and contributed Flutter/Dart features alongside my teammate
Stack
Laravel, PHP, MySQL, Docker (PHP-FPM, Nginx with SSL), GitHub Actions
Client app
Flutter/Dart, Provider
Status
Delivered to the village office

Context

Staff attendance at the village office was recorded on paper, which made recaps slow and sign-ins hard to verify. The replacement was AGEN (Absensi Gedangan), a face-recognition attendance system built by a two-person team as a Flutter app backed by a Laravel API.

What I built

  • Designed the MySQL schema and the face enrollment and attendance endpoints, replacing manual paper recaps with instant queries for the office's 13 staff.
  • Implemented face verification in PHP, using cosine similarity over embeddings extracted by an existing MobileFaceNet model, with weighted scoring across official and registration photos.
  • Deployed the application on an Ubuntu VPS using Docker and Nginx, with automated deployment through GitHub Actions.
  • Updated Flutter/Dart date filters for attendance history, Provider-based sessions, and face-processing components. Used an existing MobileFaceNet model for embedding extraction.

Architecture

Architecture of AGEN (Absensi Gedangan)The Flutter app computes a face embedding on the device with MobileFaceNet (TFLite) and sends it to the Laravel API's enrollment and attendance endpoints. Face verification runs in PHP with cosine similarity, weighted across the official and registration photos, and results are stored in MySQL. The API, PHP-FPM, Nginx with SSL and MySQL run from a multi-stage Docker build on the client's Ubuntu VPS.Ubuntu VPSDocker: PHP-FPM,Nginx (SSL), MySQLFlutter appComputes a face embedding on thedevice: MobileFaceNet (TFLite)Laravel APIEnrollment endpointsAttendance endpointsFace verification in PHPCosine similarity, weighted acrossofficial and registration photosMySQL

Decisions

  1. 01

    Embeddings on the device, verification on the server in PHP

    An early prototype used a separate Python (Flask) service for verification. It was dropped before production and folded into the Laravel app to keep the system simple, in one ecosystem: one codebase and one deployment.

  2. 02

    Weighted scoring across several photos

    A face is scored against the official photo and the registration photos together, instead of a single reference image.

  3. 03

    The match threshold lives in configuration

    It is kept in sync with the mobile client, because lighting and phone cameras vary in the field.

Outcome

Paper recaps were replaced by database queries for the office's 13 staff, with face enrollment and verification through the Laravel API and Flutter app.

Screenshots

Handover at the Gedangan village office: the two developers and a village official holding phones and a laptop running the system.
Handover at the village office.
Admin dashboard in the mobile app: today's summary shows 12 of 13 staff present, 3 late and no pending leave requests. Staff names are hidden.
Admin dashboard: today's attendance.
Staff dashboard in the mobile app: the month's attendance score against a 90% target, with days present, late and on leave. The name and photo are hidden.
Staff dashboard: monthly attendance score.