Talk to an engineer

CakePHP 2.x to 5.x, across the big boundaries

The jump from CakePHP 2 to 3 rebuilt the ORM and the directory layout, and later majors raised the PHP floor. We take CakePHP applications across those boundaries in stages, keeping the application live throughout.

The 2 to 3 boundary

The ORM, the file layout and the conventions all changed. We treat it as a migration and plan it model by model.

Tooling where it helps

CakePHP's upgrade tool handles renames and moves. We use it for the mechanical work and do the rest by hand.

Through to current

After the big step, each later major is smaller. We keep going until the application is on a current CakePHP and PHP.

What makes CakePHP upgrades hard

Most of the effort concentrates in one boundary.

A new ORM with entities and tables replacing CakePHP 2 models

Namespaces and a new directory structure from version 3

Plugins that were never ported past CakePHP 2

Changes to helpers, components and request handling in each major

PHP minimums rising with each release, up to PHP 8.1 for CakePHP 5

How we run it

Stage by stage, with each stage shipping.

Tests on the business-critical paths before the ORM changes

The upgrade tool run per stage, then hand fixes and review

Plugins replaced or ported, one decision per plugin

Old versions kept patched under SeaPHP LTS during the move

Common questions

Should we stay on CakePHP?

If the team knows it and the application fits, yes. CakePHP 5 is modern and maintained. If you are rewriting most of it anyway, compare the alternatives first.

Find out what your PHP estate needs

Tell us which versions you run and where. An engineer replies within one business day.