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

**URL:** <https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366>\
**Category:** Need Help\
**Created:** [June 1, 2018, 1:43pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366 "2018-06-01T13:43:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loremmonkey](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/loremmonkey/32/1040_2.png) [@loremmonkey](https://discourse.cakephp.org/u/loremmonkey)\
**Post date:** [June 1, 2018, 1:43pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/1 "2018-06-01T13:43:14Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Maan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/maan/32/628_2.png) [@Maan](https://discourse.cakephp.org/u/Maan)\
**Post date:** [June 1, 2018, 6:29pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/2 "2018-06-01T18:29:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![loremmonkey](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/loremmonkey/32/1040_2.png) [@loremmonkey](https://discourse.cakephp.org/u/loremmonkey)\
**Post date:** [June 2, 2018, 5:58pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/3 "2018-06-02T17:58:00Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![Maan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/maan/32/628_2.png) [@Maan](https://discourse.cakephp.org/u/Maan)\
**Post date:** [June 2, 2018, 7:40pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/4 "2018-06-02T19:40:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [June 2, 2018, 9:56pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/5 "2018-06-02T21:56:39Z")

</div>

I gave a pretty good way here [Upgraded cake from 3.3 to 3.6 getting below warning](https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340)

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

---

<div class="post-metadata">

**Author:** ![Graziel](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Graziel](https://discourse.cakephp.org/u/Graziel)\
**Post date:** [June 2, 2018, 10:06pm UTC](https://discourse.cakephp.org/t/how-to-upgrade-cakephp-app-while-going-from-3-4-to-3-5-to-3-6-latest/4366/6 "2018-06-02T22:06:00Z")

</div>

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

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

> **[dereuromark/upgrade](https://github.com/dereuromark/upgrade)**
>
> Upgrade tools for CakePHP meant to facilitate migrating from one version of the framework to another - dereuromark/upgrade

> **[rectorphp/rector](https://github.com/rectorphp/rector)**
>
> Instant Upgrades for PHP Applications . Contribute to rectorphp/rector development by creating an account on GitHub.
