Skip to content
Back to Portfolio
Government Information System2026Fullstack Engineer (Legacy Migration & Deployment)

SiPeka BKN — Workforce Planning System

Migration of BKN's internal workforce-needs planning system from CodeIgniter 3 to Laravel 13 — same UI and data, hardened security, containerized delivery.

LaravelPHPMySQLPhpSpreadsheetBootstrapDockerKubernetesJenkins
Overview

About This Project

SiPeka is BKN's workforce-needs planning application. Administrators and echelon-unit users monitor formation needs, actual placement (bezetting) and upcoming retirements by unit and position. I migrated the original CodeIgniter 3.1 application to Laravel 13 on PHP 8.3+, preserving existing URLs, views, user accounts and historical data, and packaged it for container deployment.
Challenge

The Problem

The legacy app ran on an end-of-life framework with the deprecated PHPExcel library, stored passwords in the session, and used MyISAM for several transactional tables. The database held live historical data and existing accounts that could not be reset, so the migration had to keep every URL, every login and the familiar dashboard behaviour intact.
Solution

How We Solved It

I rebuilt the routes in Laravel so all legacy endpoints and base64-encoded page parameters still resolve, and moved business logic into dedicated services — PlanningData for planning and dashboard queries, SpreadsheetImport for Excel validation and import. Authentication reads the existing m_user table, verifies legacy bcrypt hashes and transparently rehashes them, with login rate limiting, POST + CSRF logout and admin-only middleware. Non-destructive migrations mirror the 20 legacy tables, add an import-operator column and convert transactional tables from MyISAM to InnoDB, while the rollback deliberately refuses to drop business tables. The app ships as a multi-stage php:8.3-apache image deployed via Jenkins, with secrets injected at runtime from Vault through External Secrets Operator.
Flow

How It Works

  1. 1

    Sign in

    Users log in with their existing BKN account (legacy password hashes) through a rate-limited, CSRF-protected form. Administrators (level 0) and echelon users (level 2) can enter; level 1 employee accounts cannot.

  2. 2

    Dashboard overview

    The dashboard summarises current-year placement (bezetting), total formation and vacancies, and staff reaching retirement age, with charts for formation comparison and upcoming retirements.

  3. 3

    Filter planning data

    Users drill down by echelon II, III and IV units and year to see requirement, placement and shortfall per position. Echelon users only see their own unit.

  4. 4

    Explore positions and functional roles

    Server-side DataTables list echelon structures, positions with surplus staff and the shared functional position (JFK) catalogue.

  5. 5

    Import monthly data

    Administrators upload Excel files (max 2 MB, 20,000 rows) for positions or requirements; PhpSpreadsheet previews and validates the rows, then validation runs again on the server before import and the operator is logged.

  6. 6

    Manage users

    Administrators add, edit and remove accounts and review the import log.

Features

Key Capabilities

📊

Planning Dashboard

Total placement, formation and this year's retirements, a 5-year retirement projection, comparison charts and the top-10 positions by staffing need.
🔎

Needs Filtering

Drill down by echelon II/III/IV units, positions and periods with server-side DataTables.
🗂️

Echelon & JFK Data

Browse echelon unit data and a shared catalogue of functional positions (JFK).
📑

Excel Import with Preview

PhpSpreadsheet import with preview, validation and correction checks, capped at 2 MB / 20,000 rows and serialized with a cache lock.
🛡️

Role-Scoped Access

Admins manage users and imports; echelon users only see their own account and unit data.
👥

User Management

Transactional create, update and delete of accounts with an import log for audit.
Gallery

Inside the Product

LoginEntry point of the BKN workforce planning system; all planning data sits behind authentication.
Technical

Under the Hood

Backend
Laravel 13 on PHP 8.3+ with thin controllers for auth, pages, DataTables, lookups, charts, users and imports, backed by service classes for planning queries and the spreadsheet pipeline.
Data & Migrations
MySQL migrations that mirror the legacy schema without dropping data, add an import-operator column and move transactional tables to InnoDB so imports and user changes run in transactions.
Security
Transparent bcrypt rehashing, login throttled to 6 attempts per minute, no passwords in the session, CSRF-protected POST logout, plus active-user and administrator middleware.
Delivery
Multi-stage Docker build (Composer vendor stage + php:8.3-apache as www-data), Helm values and a Jenkins pipeline pushing to a private Harbor registry, with runtime secrets from Vault via External Secrets Operator.
Results

Impact & Outcomes

Moved a live government planning app off an end-of-life framework without resetting any user account

Kept every legacy URL and the existing UI, so users needed no retraining

Replaced PHPExcel with validated, previewed PhpSpreadsheet imports

Closed legacy security gaps: session-stored passwords, missing rate limiting and GET logout

Container-ready deployment with secrets managed in Vault

Reflection

What I Learned

In a legacy migration, compatibility is the real requirement — routes, password hashes and data all have to keep working on day one. Non-destructive migrations and a test suite on isolated SQLite made it safe to modernize a system that holds real historical records.

Other Projects