// case study · Open source · in progress · Dec 2025
Online Exam Platform API
Backend for a paid online exam platform: exam types, exams and sections, questions with options, user attempts and answers, plans, and payments through First Iraqi Bank (FIB).
Laravel 12PHPMySQLSanctumFIB Payments
View source on GitHub ↗- my role
- Sole developer
- the problem
- Exam providers need to sell exams online, structure them into sections and questions, and record each user's attempt and answers.
What I built
- A data model covering exam types, exams, sections, questions, options, user exams and user answers.
- RESTful resources with nested routes (sections → questions) and restore endpoints for soft-deleted records.
- Plans and payments: creating an FIB payment for an exam and handling the bank's callback to mark it PAID or FAILED.
- Shared list services and an API response helper for consistent JSON output.
Outcomes
- Integrated a local payment gateway (FIB) into a Laravel API.
- Designed a normalized schema for exams and attempts.