Skip to content

AIW Gabès

  • Laravel
  • PHP
  • MariaDB
  • Tailwind CSS
  • Alpine.js
  • Pest

A land-sales platform for a real-estate agency in Gabès, rebuilt from data exports after the original developer disappeared: buyers, plots, instalment plans and payments, with the same screens the staff already know.

Intro

The problem

The land-sales agency's original developer vanished: no source code, no server access, only the old system's CSV data exports.

Mission
Give a real-estate agency back control of its own platform, without losing a single instalment from six years of history.
Built with
Laravel, PHP, MariaDB, Tailwind CSS, Alpine.js, Pest
My role
Sole developer: data migration, backend, UI/UX, security, infrastructure and CI/CD · 2026
Buyers
~1,500
Plots in 12 lotissements
~2,000
Instalments
~64k
Reconciliation checks
20/20
Tests in CI
227

What I built

AIW Gabès sells land plots (lotissements) on instalment plans. Their original developer disappeared and nobody had access to the server, so I rebuilt the whole platform from the old system's data exports: about 1,500 buyers, 2,000 plots in 12 lotissements, 64,000 instalments and 40,000 payments over six years.

  • Migration: a re-runnable importer rebuilds the database from the CSV exports and is checked 20 out of 20 against the old system's own reports, with zero mismatch: counts, totals to the millime, overdue instalments and recovery per year. Anomalies are flagged for a person to review, never corrected silently.
  • Same screens, new look: the same pages and French labels as before, so the staff needed no retraining, in a new "registry ledger" design set in IBM Plex Sans and Plex Sans Arabic. Arabic names now display correctly on screen and in PDF exports, which the old system got wrong.
  • Roles: Dev, Admin and Employé, with per-person feature switches, login by CIN number, mandatory two-factor authentication for admins and a full audit trail.
  • Dashboards: one per role, with charts rendered on the server as SVG, no chart library.
  • Built from the side-by-side run: a screen-by-screen comparison with the old platform, a supervisor space (payment progress, reports, deposits, expenses), a numbered receipt with its PDF for every payment, an instalments page that shows what to pay first, and a way for staff to report a problem or suggest an idea.

The new platform is running side by side with the old one; the cut-over comes once the staff have checked it against their daily work.

Engineering notes

A strict Content-Security-Policy with nonces, no personal data in logs, encrypted personal data in the audit log, and a database constraint that makes paying the same instalment twice impossible. Secret scanning runs in CI, and the platform had a security review before launch.

Deploys are one click and atomic, with a health check and an automatic rollback. Backups are encrypted every day, pulled off-site, and the restore has been tested; a runbook rebuilds the server in under an hour.

The stack

Laravel 13 on PHP 8.5 with MariaDB 11.8 in production, Blade with Tailwind CSS 4 and Alpine.js (CSP build). Tested with Pest (227 tests) and Larastan on PHP 8.3 and 8.4 in GitHub Actions, served by nginx with Let's Encrypt.

More projects