Elevating Legacy: A Case Study on the migration from Laravel 4 to 9
summary
A real migration story: move a Laravel 4.2 codebase to Laravel 9 and make it live on 24 Feb 2023, remove dead features via tombstones instrumentation, automate many edits with Rector (about 359 rules then plus custom rules), raise type coverage toward 100% type coverage so renames are safe, keep ~60–70% functional tests and add smoke tests, avoid sweeping refactors, break work into smaller steps, and prefer minimal changes that get the app running before cosmetic upgrades.
AI-written summary · about
chapters (9)
- 0:00Laravel upgrade journey
- 1:54Code prehab for upgrades
- 10:24Dead code removal and type coverage
- 16:34Upgrade planning tools
- 23:15Breaking upgrade into tasks
- 26:49Custom Rector rules
- 38:05Executing upgrade steps
- 38:46Decoupling business logic
- 44:22Q&A
related talks
30mLegacy to Laravel in 30 minutes
48mMigrating a 15 Year Old Enterprise Application to Laravel: Lessons Learned and Opportunities Gained
28mMigrating to Laravel: Managing the ick
37mLearn to appreciate legacy (Story about Zed)
57mLiving the Best Life on a Legacy Project
57mRefactoring a large legacy PHP Application: a case study
49mUpgrading Legacy to the Latest PHP Version
38mCrafting maintainable Laravel applications
