To start developing in 4.x or continue with 2.x till 4.x goes to stable


We have an app that is running 2.x of CakePHP. There is a need to have APIs built which we are planning to do via Swagger. I was thinking of doing new build via 2.x and then later when 4 comes upgrade. Or is it prudent to build using 3.x? Please advise the pros and cons? Thanks.

The jump from 2.x to 3.x is major. The jump from 3.8 to 4.x should be very minor, particularly if you develop with deprecation warnings turned on and avoid using any of those functions. I would absolutely do new development in 3.x; you’ll get to keep SO much more of your code when you update to 4.x.

It’s a good question.
I thought about the same situation .

I agree with @Zuluru. In general if you implement major new functionality don’t spent any resources on 2.x anymore. 3.x is a huge upgrade to 2.x esp. on the database layer, while migrating from the latest 3.x to 4.x is rather trivial in comparison.