Back to Projects

JI2A — Payroll Management

A full-stack PHP web application for managing organizational payroll, including employee profiles, automated salary calculations, and tax deductions.

2023

Duration

May 2023 – Jun 2023

Contributors

4 contributors

Technologies

4+ tech

JI2A — Payroll Management

JI2A is a full-stack PHP and MySQL web application for managing payroll inside an organization. HR administrators manage employee records, compute salaries, apply tax deductions and generate payroll reports, through an interface that uses Ajax so pages never need a full reload.

The problem#

Payroll in a small organization is often a spreadsheet maintained by one person: a row per employee, formulas for gross and net pay, and a lot of manual copying every month. It works until the person who understands the formulas is away, or until two people edit the same file.

JI2A moves that work into an application: employee data lives in a database, salary rules are applied consistently, and only the right people can change them.

What it does#

  • Authentication and roles — separate access for administrators and HR staff
  • Employee management — detailed profiles with personal information and salary grade
  • Payroll processing — automated salary calculation with tax deductions
  • Reports — payroll reports for auditing and record-keeping
  • Dynamic interface — Ajax-powered screens that update without reloading the page

Architecture#

Browser (Bootstrap + jQuery)
   │  Ajax requests (JSON)
   ▼
PHP endpoints / controllers
   │
   ├── auth & role checks (session)
   ├── payroll engine
   │
   ▼
MySQL — employees, roles, salary grades, payroll records

The application follows a custom MVC structure written in plain PHP, running on Apache.

Key challenges#

A flexible payroll engine#

Salaries are not one formula. Employees sit on different salary grades, and tax deductions depend on income brackets. Hard-coding those rules would mean changing code every time a grade or rate changed.

Instead, payroll rules are configured per salary grade and stored in the database. The engine reads an employee's grade, computes gross pay, applies the deductions for the relevant bracket and records the result. Changing a rate is a data change, not a code change, and every payslip for the same grade is computed the same way.

A responsive UI without a SPA framework#

A classic PHP application reloads the whole page on every action, which makes data-heavy HR screens slow and frustrating. Here, Bootstrap provides the layout and jQuery Ajax calls fetch and update data from PHP endpoints that return JSON. Adding an employee or recalculating a payslip updates the relevant part of the page and nothing else.

Access control without a framework#

Payroll data is sensitive: not everyone who can see an employee should be able to change their salary. Without a framework's security layer, role checks were implemented directly — session-based authentication identifies the user, and every endpoint checks the user's role before reading or modifying payroll data. The check lives on the server, so hiding a button in the UI is never the only protection.

Stack#

LayerTechnologies
FrontendHTML, CSS, Bootstrap, jQuery, Ajax
BackendPHP (custom MVC)
DatabaseMySQL
ServerApache

Results#

  • A complete payroll lifecycle, from employee onboarding to salary disbursement
  • An Ajax-driven interface with no full-page reloads
  • Role-based access that prevents unauthorized payroll changes

Team#

Built with JalalEddine OUTGOUGA, Abdelmajid ZADDI and Abdelaziz AFRIAD.

Share:Share on Twitter / XShare on LinkedInShare on Facebook

Progiciel de Gestion de Paie

1. Description du projet :

L’objectif de ce projet est de réaliser une application web de gestion de la paie. Elle doit permettre le paramétrage dynamique des règles de la paie.

2. Spécifications fonctionnelles du projet :

Le projet en cours vise à mettre en place une application de gestion dynamique et paramétrable des règles de calcul de la paie des employés.

Les règles de calcul de la paie dépendent de l’entreprise en question et du statut de l’employé.

a. Espace Responsable Ressources Humaines :

  • Le responsable est en charge de l’ajout et la mise à jour des entreprises au niveau de l’application.
  • Le responsable RH est en charge de la gestion des employés. Chaque employé est affecté à une entreprise. Toutes les informations relatives à l’employé doivent être renseignées au niveau de l’application pour permettre le calcul automatique de sa paie
  • (informations personnelles, situation familiale, informations bancaires, CNSS, CIMR etc.)
  • Le responsable RH se charge de la saisie des absences, congés, primes et heures supplémentaires.

b. Espace Responsable de la Paie :

  • Le responsable de la paie est en charge de la définition des rubriques de paie. ces dernières sont dynamiques et peuvent être modifiées à tout moment par le responsable de la paie.
  • Pour chaque rubrique, on définit des règles de calcul.
  • Les règles sont affectées aux entreprises. Ces dernières peuvent avoir des règles différentes pour la même rubrique de paie, mais une seule règle par entreprise et par rubrique.
  • Le responsable de la paie peut visualiser et exporter un bulletin de paie sous format pdf ou excel.

c. Espace Employé :

  • L’employé a un espace dédié où il peut visualiser ses informations personnelles. Il peut aussi visualiser ses absences, congés et heures supp. En cas d’erreur, l’employé peut envoyer une réclamation au responsable RH ou de paie.
  • d. Règles de calcul de la paie :

    Le salaire ou rémunération net d’un employé est calculé à partir de son salaire de base auquel s’ajoutent des majorations et sont retranchées les retenues :

    • Salaire net = salaire de base + majorations – retenues
    • Salaire de base : correspond au salaire contractuel convenu entre le salarié et l’employeur.
    • Les majorations comprennent les heures supplémentaires, les primes et les allocations familiales.
    • Les allocations familiales = 200Dhs pour chacun des trois premiers enfants et 36Dhs pour les trois suivants.
    • Les retenues= cotisation CNSS+Cotisation AMO+ Cotisation CIMR (si employé inscrit) +IGR

    3. Autres spécifications :

    • Technologie : SGBDR, HTML, PHP, JavaScript, XML, CSS.
    • Interfaces : Ergonomiques, Faciles à manipuler.
    • Sécurité : L’application doit garantir un accès sécurisé à tous les espaces.

    More Projects

    Dr Maroc
    2024Current
    A healthcare SaaS live at drmaroc.com, grown from a single app into a platform: four Angular portals in one Nx monorepo, a modular Spring Boot backend, self-hosted Keycloak, shared contracts, and a delivery pipeline where GitHub is the source of truth.
    AngularNxNext.js+8
    ngx-auth-client
    2026Current
    A published npm package that exposes Angular authentication as signals instead of getters, ships Keycloak and HTTP adapters behind a provider-agnostic port, and keeps tokens out of localStorage entirely.
    AngularTypeScriptKeycloak+7