Skip to content

CakePHP 3.x: The Shimming has begun

Choose a tag to compare

@dereuromark dereuromark released this 07 May 21:20
· 541 commits to master since this release

With this first release for CakePHP 3.x it is now easier than ever to upgrade existing CakePHP 2.x apps to the next major version.
You might already have shimmed your 2.x project using the corresponding branch of this plugin to ease migration upwards, but even without that you can leverage many of the included shims to make the upgrading process smoother and faster.

The idea:

  • Only modify what is absolutely necessary, shim a lot of things in the meantime and save time.
  • Then once you made it run again, maybe even added more functionality/tests in the process, you have time to - piece by piece - refactor the shimmed parts if you like (any time you like).

Shims include

  • The controller layer
  • The model layer (validation, relations!)
  • The view layer (around helpers)
  • Help on reporting issues and warn about missing migration steps

Many more shims are included in the 2.x branch already, so bottom line, if you want to save time and resources:
In case you know you want to upgrade your 2.x app to 3.x, but it will still take a few months, maybe look ahead, use the tips provided (incl. the official migration guide on top) to avoid additional work in the future, use the 2.x Shim plugin versions in your project already and prepare for the upgrade as best as possible.

Happy baking!