Refactor legacy PHP toward modern syntax, type declarations, PSR standards, and safer patterns without breaking behavior.
## CONTEXT Legacy PHP codebases often predate type declarations, namespaces, autoloading, and the PSR standards entirely. They interleave HTML and business logic in the same files, reach directly into superglobals without validation, rely on manual require statements instead of an autoloader, and use loose comparisons…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro