Rewrites feel clean and often run late. The old system keeps earning money while the new one catches up, and hidden rules in the old code get lost. Extending is usually safer, but not always.
Signs you should extend
- The framework version is old but the structure is understandable.
- Bugs cluster in a few areas, not everywhere.
- You can add tests around the risky parts.
- The business rules are still right.
Signs a rewrite may be justified
- No one can change a feature without breaking another.
- The data model fights the business, not just the code.
- Security or hosting limits cannot be fixed in place.
- The product is changing direction, so old rules no longer apply.
A middle path
Upgrade the framework in steps, add tests around money and permissions first, then replace one module at a time. You keep shipping while risk falls.
What an audit looks at
- Framework and PHP versions, and the upgrade path.
- Security basics: secrets, permissions, input handling.
- Test coverage on critical flows.
- Slow queries and background jobs.
- A ranked list of fixes with rough effort.
