Migrating a Legacy PHP/CodeIgniter Stack to Next.js
Notes from moving a logistics management platform off CodeIgniter to Next.js incrementally, without pausing feature delivery.
The setup
PT Energy Logistics runs its internal logistics management platform on a legacy PHP/CodeIgniter stack. The goal isn’t a rewrite from scratch — it’s an incremental migration to Next.js while the business keeps shipping features and fixes on the existing system.
Approach
- Route new pages through Next.js first, keeping the CodeIgniter backend as the source of truth for data during the transition.
- Prioritize the highest-traffic screens for migration so the team feels the benefit early.
- Keep both stacks deployable independently to avoid a big-bang cutover.
What’s next
More detail on the migration playbook — routing strategy, auth bridging, and rollout sequencing — will land here as the project progresses.