Client case study: legacy app modernization
Yii1 to Yii2 and Vue 3, without a rewrite freeze.
For a Canadian food retail and delivery company, we are moving a live Yii1 platform to Yii2 and Vue 3. The HR, employee and supplier modules move one at a time, and the old system keeps serving the business.
The client
A Canadian food retail and delivery company. Its name is withheld.
Much of the company runs on software built in-house. That includes HR and payroll preparation, employee tools, supplier portals and warehouse screens. We have worked inside that codebase since 2022.
The problem: an end-of-life framework under a live business
The platform had grown up on Yii1, a PHP framework that no longer receives updates. A full rewrite with a feature freeze was not an option.
The business depends on the platform every day. Payroll runs on a fixed cycle, hiring does not pause, and suppliers place requests daily.
The legacy application also kept changing. Business rules fixed in the old code during the migration had to arrive in the new code too.
How the migration works
Each module moves on its own, while old and new run side by side against the same database. A module retires in the old system only after a parity check.
01
Port the back end. Endpoints move into Yii2 services and controllers, with business logic taken out of the controllers.
02
Rebuild the screens. Server-rendered pages become typed Vue 3 components on Vuetify.
03
Run a parity pass. A tester works through the old and new screens together. Every difference becomes a ticket.
04
Cut over. The old screen retires only when the parity list is empty.
Changes made to the legacy system while a module is in flight are tracked and replayed into the new one. Scheduled jobs move separately, one job per change.
Tests are written as the code moves: unit tests on services, integration tests on controllers, component tests on screens, and end-to-end tests on key workflows.
What we delivered
The work so far covers the HR, employee portal, punch clock and supplier modules. The migration is still in progress.
Module-by-module port
Hiring, directory, absence, time tracking, forms, tasks, events and engagement modules moved to Yii2.
Vue 3 front end
Server-rendered pages rebuilt as typed Vue 3 components, with shared stores and theme tokens.
Shared service layer
Business logic moved from controllers into services used by more than one application.
Parity passes
Side-by-side checks of old and new screens, with each difference fixed before cut-over.
Scheduled job ports
Reminder, status, holiday calculation and report jobs moved to the new console, one at a time.
Replayed legacy changes
Rule changes made in the old system during the migration applied again in the new code.
Two-factor login
Two-factor authentication ported, with lockout and forced enrollment added.
English and French
Message files kept in step for every screen, email and notification.
Before and after
For the modules that have moved, the framework, the front end and the test coverage have all changed. The business did not stop for it.
Before
Modules on an end-of-life framework. Server-rendered pages with jQuery behavior. Business logic inside controllers. Scheduled jobs as legacy timers.
After
The same modules on Yii2 and Vue 3. Logic in shared services. Jobs on the new console. Tests at four levels. Old and new run side by side.
How we worked
This work runs as a monthly retainer, not a fixed-scope project. One team works from the client's backlog, in the client's repository.
Every change goes through a pull request, automated tests and a second reviewer before it merges.
That model is what makes an incremental migration workable. Priorities shift between migration work and business requests from one sprint to the next. The people who port a module are still there to fix what the parity pass finds.
Can a legacy PHP application be modernized without a full rewrite?
Yes. You can move it one module at a time while the old and new systems run side by side on the same database. Users keep working, and each module is switched over only after it matches the original.
How do you make sure the new screens behave like the old ones?
We run a parity pass. A tester works through the old and new screens together and logs every difference. The old screen retires only when that list is empty.
What happens to changes made in the old system during the migration?
They are tracked and applied again in the new code. Without that step, the two systems drift apart and the cut-over brings back old bugs.
Is Yii1 still supported?
No. Yii1 has reached end of life and no longer receives updates. Yii2 is the usual migration target, because much of the application structure carries over.
Running on a framework that has reached end of life?
Tell us what the application does and what it is built on. We outline which modules to move first, and how old and new can run together.