Version Upgrade from 2.x to 5.x

I have project with cakephp 2.X . Customer want to upgrade in cakephp 5.x . Is there plugin which help me for this . Which can show deprecated methods in VS Code and provide anything helpful suggesion in VS code.

I want any plugin which help for the version update in cakephp 5.

I don’t think there are any plugins for it. I did some upgrade from cakephp 2 → cakephp 4 and I see 2 options :

  1. Migrate to cakephp 3, then to cakephp 4 following the migration guide. There is the upgrade-tool to update your source code.

  2. Install cakephp 5 and migrate your code manually. This is faster if your code-base is small. I did this when I migrated from cakephp 2 → cakephp 4

I’d also just start a fresh CakePHP 5 app and manually migrate stuff over. So many things have changed from CakePHP 2 that you are better off just re-creating the app.

I’m new to CakePHP and working on a project that currently runs on CakePHP 2.x. The project needs to be upgraded to CakePHP 5.x, but the PHP version must remain at 5.x and cannot be updated beyond that. Can anyone assist with this upgrade?

I don’t think it’s actually possible to run Cake 5.x on PHP 5.x. One or the other of these requirements is going to have to change.

1 Like