Blog
Hiring a PHP Developer for Legacy Code
How to hire a PHP developer for legacy code: assess the repo, upgrade PHP safely, decide when to migrate to Laravel, and what a paid trial should prove.
Muhammad Zubair Akhtar
If you need to hire a PHP developer for a codebase that already runs in production, the hire is not the same as hiring for a greenfield Laravel app. The person has to read someone else's decisions, keep the shop online while they change it, and tell you honestly when the cheapest path is a small fix and when the debt has blocked the next feature.
I am Zubair Akhtar, a senior software engineer in Lahore, Pakistan. Most of the PHP work I take on now is Laravel, but a large share of real client work still starts in older PHP: a custom CMS, a framework that stopped getting updates, or a WordPress-adjacent PHP app that grew without a clear owner. This guide is for that hire. The general vetting pass — reading a real change, a paid trial, accounts in your name — is already in hiring a Laravel developer. I will not repeat those steps. This page is about legacy PHP: how to scope the work, when to keep the stack, when to move to Laravel, and what a good supplier should show you before you sign.
If the job is a Laravel rebuild or a new Laravel product, start from Laravel development. If you are still choosing between PHP stacks for a business site, the comparison in Laravel vs WordPress is the better first read.
What "legacy PHP" usually means
"Legacy" is not a version number. It is a codebase that is hard to change safely. In practice I see some mix of:
- PHP below the versions that still get security releases, or a host that will not let you move up
- A custom framework, or an old framework release that the community no longer supports
- Business logic mixed into templates, globals, and copy-pasted includes
- No automated tests, or tests that no longer run
- A deploy path that is FTP, a shared host control panel, or "ask the previous developer"
- Credentials and the repository living in a personal account you cannot access
None of that means the product is worthless. It means the hire has to price the risk of changing it, not only the hours to add a feature.
Decide the outcome before you hire
Write one sentence for what "done" looks like. Examples that work:
- "Keep this app running on a supported PHP version and fix the top five bugs."
- "Add this payment or reporting feature without a rewrite."
- "Migrate the core flows to Laravel and retire the old app behind a cutover plan."
A vague brief ("modernise our PHP") produces quotes you cannot compare. A clear outcome lets candidates push back when the outcome and the budget do not match.

Figure 1. Stop at the first row that matches. Maintain when the product is stable. Upgrade PHP when security releases are blocked. Migrate when framework debt blocks the next feature.
| Situation | Sensible direction |
|---|---|
| The app is stable, bugs are known, and the host runs a supported PHP | Maintain and harden. Do not start a rewrite for taste. |
| Security updates are blocked by an old PHP or an abandoned framework | Upgrade PHP and dependencies first, on staging, with a rollback. |
| New features fight the architecture every sprint | Plan a Laravel migration for the flows that matter, not a big-bang rewrite of every screen. |
| The previous developer owns the only copy of the code or the host | Recover ownership before you hire for features. Without the repo and the host, you are buying hope. |
I read the current PHP supported-versions page when I plan an upgrade. Labels and end-of-life dates move; confirm them for the version on the server you actually run, not for a version in a slide deck.
What PHP development services should cover on a legacy job
PHP development services for an old app are usually some mix of assessment, stabilisation, feature work, and (sometimes) migration. Ask which of those the quote includes.
A useful assessment answers:
- Which PHP version is live, and which versions the code can still run on
- Which framework or custom bootstrap is in play
- How deploys happen today, and whether staging exists
- Where secrets live (
.env, config files in the repo, host panel) - Whether there is a test suite that runs, even a thin one
- Which third-party APIs and cron jobs the app depends on
Stabilisation is the unglamorous work that makes feature work safe: PHP upgrade, dependency updates that still have a maintainer, fixing the highest-severity bugs, putting the app behind HTTPS and proper backups, and moving the repository into an organisation you own.
Feature work on legacy code is slower than the same feature on a clean Laravel app. A good quote says so. A bad quote pretends the codebase is greenfield.
Migration to Laravel is a product decision, not a badge. Laravel helps when you need a maintained framework, clear structure, queues, and a team that can hire against a known stack. It is overkill when the app is a small stable tool and the only problem is a missing backup. When one senior engineer can own the whole path, the scope notes in what a full stack developer does are useful context; for a legacy migration, still insist on a cutover plan, not only a new repo.
How to hire a PHP developer for this work
Use the general hiring checklist linked above for code review habits and red flags. On top of that, ask legacy-specific questions and compare the answers, not the slogans.

Figure 2. Six checks that are about the existing app. They sit on top of a normal hiring pass.
- Read the repo. They can clone it, run it locally or on staging, and name the entry points. A candidate who only wants a slide of requirements has not priced this codebase.
- PHP and framework versions. They can say what is live and what the first upgrade step would be. "We will rewrite it in Laravel" is not an upgrade plan by itself.
- Test and deploy path. They can describe how a change reaches production and how they roll it back. FTP-only deploys need a plan before large changes.
- Shared hosting vs VPS. They know what the current host allows. Some shared hosts block the PHP version you need, or block SSH, which changes the quote.
- Credentials you own. The Git host, the server, the domain, the database backups, and any payment or email APIs stay in accounts registered to the business. The developer is a user you can remove.
- Paid trial on a real bug. Pay for a small, real fix in a repository you own. Legacy skill shows up in how they navigate the code, not in how they describe clean architecture.
A Laravel development company can be the right supplier when the agreed outcome is a Laravel migration or a new Laravel service beside the old app. It is the wrong default when you only need the current PHP kept alive. Ask them to price the maintenance path and the migration path separately so you can choose with numbers, not vibes.
When to move to Laravel
Move when the next six months of product work are blocked by the old structure, or when you cannot hire maintainers for the current stack at a quality you trust. Stay when the app is stable, the PHP version is supported, and the cost of a migration would buy years of ordinary maintenance.
A sane migration is incremental where the product allows it:
- Put ownership and backups in place first
- Upgrade PHP as far as the current code can go
- Extract or rebuild the highest-value flows in Laravel behind clear URLs or an API
- Keep a rollback for the cutover weekend
- Retire old routes only after the new path has carried real traffic
Do not claim a rewrite is "done" when half the business still runs on the old admin. The cutover list belongs in the statement of work.
I am not attaching sample migration code here. Any snippet that is not run against your app is decoration. Ask the candidate to show a migration they shipped, including how they handled sessions, auth, and the database during the switch.
Red flags
Pause if you hear any of these:
- A rewrite as the first answer, before they have seen the repository or the host limits.
- No staging and no rollback, especially on a store or any app that takes payments.
- Edits only on the live server, with no repository you control.
- Credentials that stay in their personal email for the host, DNS, or payment tools.
- A fixed price for "full modernisation" with no inventory of modules, integrations, or data migration.
- Silence on PHP version and framework age. Those two facts drive most of the real cost.
FAQ
Should I hire a PHP developer or a Laravel specialist for legacy code?
Hire for the outcome. If the job is to keep and improve the current app, you need someone fluent in older PHP and careful with production. If the job is a Laravel migration, hire someone who has cut over a live app before, not only someone who can start a new laravel new project. Many people can do both; the brief should still say which outcome you are buying.
Can we upgrade PHP without rewriting the app?
Often yes, in steps. Many codebases can move one supported PHP version at a time once the dead extensions and removed language features are fixed. The limiting factor is usually the oldest dependency or the host, not the business logic. Ask for a staged upgrade plan with a staging site, not a single leap to the newest PHP on production night.
When is a Laravel migration worth it?
When framework debt, hiring, or security maintenance costs more than a planned migration over the next product cycle. It is rarely worth it for a small stable internal tool with no roadmap. It is often worth it when you need queues, clearer structure, and a stack you can hire against for years. Start from Laravel development if that is the path you want priced.
What should a paid trial look like on legacy PHP?
Pick one real bug or one small feature that touches an awkward part of the code. Give access to a staging copy or a branch in a repository you own. Judge the pull request: did they find the right entry point, avoid drive-by rewrites, leave the app deployable, and explain the risk? That trial tells you more than a take-home algorithm test.
Work with me
I take on legacy PHP assessment, careful upgrades, and Laravel migrations when the product justifies them. The repository and the host stay in your accounts. If you want that work scoped, start at Laravel development and send the PHP version, the framework (or "custom"), and whether you already have staging. If you still need the general hiring pass first, use the Laravel developer hiring checklist and come back with the trial result.
