Before You Modernise a Legacy PHP System, Find Out What It Actually Does

Arjun P

Solution Architect

20 Nov 20266 min read

Before You Modernise a Legacy PHP System, Find Out What It Actually Does

Scheduled jobs, payment callbacks, partner feeds and rules buried in code: the work an old PHP application does quietly is the work a migration most often breaks. Here's why an inventory comes first.

Ask a team what their PHP application does and you will usually get a description of its screens: the website, the customer portal, the admin panel. That is rarely the part that causes trouble in a migration.

The trouble sits in the work the system does without anyone watching. A job that runs at two in the morning to send overdue-invoice reminders. A payment provider calling your server to confirm that an order was paid. A file that a logistics partner collects from you every night. A rule in the code that gives a particular customer group free delivery. None of these appear on a screen.

When you modernise, anything you don't know about is something you can't move, test or protect. Before deciding what to rebuild, how, or in what order, the first step is to find out what the old system actually does.

The decision you're facing

Every modernisation starts with a scope: what the new system has to do. The easy answer is "everything the old one does". The hard part is that nobody has a complete list.

Older PHP applications tend to collect hidden duties over time. The common ones are:

  • Scheduled jobs. Tasks that run on a timer rather than when someone clicks something: sending emails, clearing old data, generating reports, syncing stock levels. On many servers these live in a schedule file on the server itself rather than in the application's code. Laravel's own documentation describes the older pattern of a separate schedule entry per task as a problem because "your task schedule is no longer in source control" and the only way to see it is to log in to the server.
  • Inbound calls from other systems. Payment gateways, shipping providers, marketing tools and partners often send messages to a specific web address on your site to tell it that something happened. These callbacks (often called webhooks) only work if that address keeps answering in the way the sender expects.
  • Outbound connections. Your system calling an accounting package, an SMS gateway, a government portal or a partner's API, often with credentials stored somewhere on the server.
  • Emails, reports and exports. Order confirmations, invoices, and the spreadsheet finance downloads every month, each with someone downstream depending on it.
  • Business rules in code. Pricing exceptions, tax handling, approval limits and eligibility checks that exist only as lines of code, not in any written policy.

The decision isn't whether to make this list. It's whether you make it before the project starts, on your own terms, or discover it item by item after go-live.

What goes wrong when it's done carelessly

The pattern is the same in each case: the new system looks finished, passes its tests and handles every screen correctly, yet something the business relied on has stopped.

Payment callbacks are a clear example. Stripe's documentation, which describes how one widely used payment provider behaves, says it treats a redirect in response to a webhook as a failure and will retry a failed delivery in live mode "for up to three days with an exponential backoff". If a migration moves or redirects the address that payment confirmations arrive at, and nobody knew that address mattered, orders can be paid for but never marked as paid. Other providers behave differently, which is exactly why each one needs to be listed and checked.

Other realistic outcomes, any of which can follow from a missing item on the list:

  • Reminder or renewal emails stop, and nobody notices until revenue dips or customers complain.
  • A monthly report quietly changes its numbers because a rounding or tax rule was not carried across.
  • An old server is kept running "just in case" because nobody is sure what still depends on it, so the cost and risk of the old system never go away.

These are potential outcomes, not documented incidents at any particular company. They share a cause: working from a description of the system rather than evidence of what it did.

The defensive approach

Security agencies have been making the same point about infrastructure for years. In August 2025, CISA and partner agencies from the United States, Australia, Canada, Germany, the Netherlands and New Zealand published joint guidance on asset inventories. It was written for operational technology such as industrial control systems, but its reasoning carries over to any system you plan to change: an inventory "is foundational" because "without an inventory, organizations do not know what they have and what should be secured and protected." CISA also lists asset inventory as one of its Cross-Sector Cybersecurity Performance Goals.

NIST's Cybersecurity Framework 2.0, published in February 2024, goes further in a way that fits modernisation well. Alongside inventories of hardware and software, it asks organisations to maintain "representations of the organization's authorized network communication and internal and external network data flows", and inventories of "services provided by suppliers". In plain terms: know what talks to what, and which outside services you rely on.

Applied to a Legacy PHP system, the defensive approach looks like this, at the level of concepts:

  • Gather evidence, not memories. Interviews matter, but so do the server's schedules, its web logs, its outgoing network traffic and its email logs. Watching a full month of real activity catches the jobs that only run at month-end.
  • Ask the other side. Payment providers, partners and SaaS tools often show you which addresses they call and how often. Your finance and operations teams know which reports they would miss.
  • Record each item with an owner and a consequence. For every job, callback, feed and rule: what triggers it, who depends on it, and what breaks if it stops.
  • Decide deliberately. Each item is either moved, replaced, or retired on purpose. Nothing is left to chance.
  • Keep the list alive. It becomes the checklist the migration is tested against.

Where Node.js fits, and where it doesn't

Moving to the modern Node.js stack can make this kind of work much easier to see. Scheduled tasks, integrations and business rules can live in the application's own code, under version control, with tests and monitoring around them, rather than scattered across a server's configuration.

But Node.js does not discover anything by itself. A new system built on any stack inherits only the duties someone wrote down. If the inventory is incomplete, a well-built Node.js application will be incomplete in exactly the same places. And the new stack brings its own responsibilities: its dependencies, credentials and integrations need to be inventoried and maintained too. Depending on the application, some parts may be better kept on a current, well-maintained PHP version for now.

What this means for your organisation

A few questions to ask of your own system:

  • Can anyone list every scheduled job on your production servers, and say what each one does?
  • Which outside services send data to your system, and to which addresses?
  • Which outside services does your system call, and where are the credentials for those connections kept?
  • Which emails, reports and files does the business receive from this system, and who would notice first if one stopped?
  • If you switched the old system off tomorrow, are you confident you know everything that would stop?

If several of these answers start with "I think", the inventory is the most valuable work you can do before any rewrite.

Recommended next step

Before you scope a migration, budget for it or pick a first module, commission an inventory of what your Legacy PHP system really does: its scheduled jobs, inbound and outbound integrations, emails, reports and business rules, gathered from evidence on the server as well as from the people who use it. It costs far less than finding the gaps after go-live.

Free Modernisation Readiness Review

Not sure where to start? Sketchmonk offers a free Modernisation Readiness Review for organisations running Legacy PHP applications. We look at what your system does today, the integrations and data it depends on, where the biggest risks sit, and which parts could move first with the least disruption. You'll talk to engineers who build on the modern Node.js stack, and there's no obligation to proceed.

Request your free Modernisation Readiness Review

Build with us. Deploy with us. Win with us

We don't deliver projects and walk away. We build with you, inside your mission.

Book a strategic consultation