Legacy modernisation

Legacy modernisation for PHP and Laravel systems

Stabilise, refactor, or selectively rewrite inherited PHP and Laravel codebases, with phased delivery instead of a default big-bang rewrite that freezes the business.

Rescue before rewrite

Inherited codebases rarely fail because the framework is wrong. They fail because years of quick fixes compound: unclear ownership, missing tests, integrations held together with cron jobs, and deployments everyone is afraid to touch.

Legacy modernisation starts with understanding what the system actually does in production, what breaks when you change it, and which parts earn a rewrite vs a refactor vs a stabilisation pass. We prefer phased improvement over big-bang replacement unless discovery proves otherwise.

Existing PHP code is assessed honestly; we do not promise a rewrite timeline before we have read the code and talked to the people who operate it.

What modernisation can include

Technical assessment

Code review, dependency audit, integration map, and risk register, usually as part of a Discovery Sprint or a focused assessment phase.

Stabilisation

Stop the bleeding: fix critical bugs, add tests on dangerous paths, document deployment, and make the system safe to change incrementally.

Refactoring

Improve structure, extract services, modernise patterns, and reduce coupling without changing outward behaviour users depend on.

Selective rewrite

Replace modules where maintenance cost exceeds rebuild cost, one vertical slice at a time rather than a parallel universe codebase that never ships.

Data migration

Schema cleanup, migration scripts, and validation when moving off legacy storage or duplicated data stores.

Integration rationalisation

Replace brittle scripts with clearer integration paths, scoped in discovery. See [Backend systems](/services/backend-systems).

Typical modernisation path

  1. 01

    Assess

    1 to 2 weeks

    Discovery Sprint or focused assessment: codebase review, stakeholder interviews, integration inventory, and phased roadmap with honest estimates.

  2. 02

    Stabilise

    Weeks to months

    Critical fixes, deployment hardening, tests on high-risk paths, and documentation so the team stops fearing releases.

  3. 03

    Improve incrementally

    Ongoing

    Refactor or rewrite modules in priority order. New features ship on the improving foundation instead of waiting for a mythical v2 launch.

  4. 04

    Decommission legacy paths

    As modules migrate

    Retire old entry points when replacements are proven in production, not on a slide deck deadline.

Signs modernisation is overdue

  • Every feature estimate comes back with "it depends" and a warning about side effects
  • Production fixes happen directly on the server because deployment is unreliable
  • Key person dependency; only one developer understands how billing or fulfillment actually works
  • Integrations are CSV files, email parsers, or undocumented scripts nobody wants to touch
  • The business wants new product work but the codebase cannot absorb it safely

Stabilise vs refactor vs rewrite

Stabilise when

  • The system works but changes are risky and slow
  • Tests and deployment are the immediate blockers
  • Business cannot pause for a long rewrite

Rewrite a module when

  • A bounded area is clearly unmaintainable
  • Refactor cost approaches rebuild cost for that module
  • Users can migrate to the new module without a big-bang cutover

Typical investment

Modernisation spans a wide range. Full EUR bands live on Pricing; below is the entry point after assessment.

These map to the Focused build, Growth systems, and Larger platforms bands on Pricing, framed for legacy-specific scope. We quote after reading the code and mapping integrations, not from a slide deck.

Where we stop

Modernisation is engineering, not magic.

  • We do not recommend a full rewrite by default; it must be justified by assessed risk and cost
  • We do not claim experience with proprietary ERP or industry platforms we have not accessed in your environment
  • We do not migrate production data without agreed validation, rollback plans, and client sign-off
  • We do not continue changing live systems without staging parity and a deployment path both sides accept

Undocumented behaviour discovered during modernisation is flagged and priced, not absorbed silently.

Common questions

Do you only work with Laravel?

Laravel is our primary framework for new and migrated components. We also assess and stabilise inherited PHP codebases and plan migration paths where Laravel is the target.

Will you always recommend a rewrite?

No. Many systems need stabilisation and incremental refactoring first. Rewrite is recommended only for modules where assessment shows it is the honest economic choice.

How long does modernisation take?

Stabilisation passes may run weeks. Phased programmes often run months. Timelines depend on codebase size, test coverage, integration count, and decision speed.

Can we keep shipping features during modernisation?

Yes, when phased correctly. We prioritise making the system safe to change, then balance new features with debt reduction as agreed in the roadmap.

What do you need from us?

Repository access, staging or safe read access to production behaviour, a decision-maker for priorities, and people who know how the business actually uses the system.

Do you document as you go?

Yes. Architecture notes, deployment runbooks, and integration maps are part of deliverables, not an afterthought.

What about data migration?

Scoped explicitly with validation steps, rollback plans, and client sign-off. Large migrations are phased, not done in one unchecked weekend.

Is a Discovery Sprint required?

Almost always for legacy work. Direct quotes without code access are unreliable, and assessment produces the roadmap everything else follows.

Who owns the improved code?

Bespoke deliverables transfer on full payment per Engagement terms. GalTech retains pre-existing reusable components.