My current project is built on CakePHP 2.x. I would like to upgrade it to CakePHP 5.3. Could you please provide the recommended approach, including necessary commands and migration steps?
You can of course hire me (@dereuromark) or other Cake experts ![]()
As for the concrete steps:
Thats a lot also up to you, small ones from 2 to 3 to 4 to 5, or usually a bit faster in this case now: Direct hard cut to 5.3+
- AI supported - will do the heavy lifting of the basics
- Apply GitHub - cakephp/upgrade: Upgrade tools for CakePHP meant to facilitate migrating from one version of the framework to another · GitHub tooling on top
- I had special tools for more smooth upgrading, but those are long EOL (especially 2=>3 and 3=>4), some of those can be tried at your own risk, also mentioned in my upgrade guides on my blog
Overall, this is now a tough one for sure, especially the 2=>3 gap is the biggest.
Once that is done with either strategy, the rest is then quite simple in comparison, and can mostly be supported by the linked upgrade tool.
PS: that said, I just did recently two 2=>5 migrations, so I do have most of the old tools working at least rudimentary locally for me.
1 Like