Help upgrading Cake PHP 2.x to latest version

Hi community,

We have a very large legacy CakePHP 2.x application. I am wondering if anyone has experience upgrading this application from CakePHP 2.x all the way up to the latest version? It seems like the upgrade path from 2 to 3 is very manual and time consuming.

For some context, this old version of CakePHP 2.x has been forked and modified, and we are trying to decide if it is even worth upgrading or just moving over to a different PHP Framework or even different tech stack altogether.

We can’t tell you “yes, this is easy” or “do this and that” to upgrade from 2 to 4 because it all depends on how your current app is built.

There were multiple major changes introduced from 2 to 3 which may or may not conflict with your already present app. The upgrade from 3 to 4 was not that big of a deal.

But instead of a upgrade I would rather recommend you a complete refactor/migration of your current app into the current recommended structure. Especially if your app contains authentication and authorization.

I can’t tell you if you should stay on CakePHP or change the tech stack because it depends on your requirements what that app should do.