How to upgrade cakephp-app while going from 3.4 to 3.5 to 3.6/latest?


#1

Hi there!
I have an app running 3.4 until yesterday, now running the latest 3.5 version. I want to upgrade to the latest 3.6 but I get a lot of deprecated warnings. Wanting to fix them in my code, I discovered, that most of the issues arise from the used cakephp-app skeleton used when creating the project.

What is the best way to merge the changes from an older cakephp-app skeleton to the latest?

By hand or diffing is tedious. Is there any way to merge?


#2

hi loremmonkey,
According to my opinion you should use Composer to upgrade it will automatically add the dependencies. Here is command you should use :yum:
php composer.phar require --update-with-dependencies “cakephp/cakephp:3.6.*”


#3

Hi and thank you for your reply! I know how to upgrade but the problem is, that this won’t update (as stated in the docs) the application template of the app skeleton found here and included by a default install: https://github.com/cakephp/app

I want to update the skeleton somehow. I know it can’t ne done automatically, but what would be the easiest way?


#4

Easiest way is through composer if you want to do it manually then there will be many bugs. My suggestions are just use composer and use above command and all done


#5

I gave a pretty good way here Upgraded cake from 3.3 to 3.6 getting below warning

Composer alone won’t do it, other App changes as well.


#6

there is nice art with some tools that helps with upgrading:

https://www.dereuromark.de/2018/03/14/cakephp-3-6-is-coming/