array_map( ?->getCustomer() mysqli_connect( try { PHP 7.4 → 8.5 #[\ReturnTypeWillChange] use Psr\Log\Logger <?php str_contains($path, '/v2') $this->logger->error( fn($x) => $x * 2 PHP 7.4 → 8.5 $result |> trim(...) } catch (\Throwable $e) { public function __construct( public function __construct( static fn(): never namespace App\Billing; try { fn($x) => $x * 2 str_contains($path, '/v2') namespace App\Billing; PHP 7.4 → 8.5 session_start(); SELECT * FROM orders public string $name { get; } fn($x) => $x * 2 declare(strict_types=1); use Psr\Log\LoggerInterface; array_map( PHP 7.4 → 8.5 <?php public string $name { get; } mysqli_connect( session_start(); PHP 7.4 → 8.5 ?->getCustomer() opcache.enable=1 random_bytes(32) E_DEPRECATED opcache.enable=1 try { E_DEPREC E_DEPRECATED enum Status: string opcache.enable=1 <?php array_map( match ($status) { composer require mysqli_connect( namespace App\Billing; composer require match ($status) { <?php public function __construct( readonly class Money final class Invoice str_contains($path, '/v2') str_contains($path, '/v2') readonly class Money str_contains($path, '/v2') session_start(); composer require #[\ReturnTypeWillChange] $result |> trim(...) namespace App\Billing; array_map( ?-> return $this; match ($status) { use Psr\Log\LoggerInterface; json_validate($body) public string $name { get; } mysqli_connect( try { session_start(); array_map( readonly class Money $result |> trim(...) $result |> trim(...) private readonly int $id, namespace App\Billing; enum Status: string array_map( mysqli_connect( static fn(): never random_bytes(32) array_map( re use Psr\Log\LoggerInterface; PHP 7.4 → 8.5 mysqli_connect( array_map( fn($x) => $x * 2 public function __construct( composer requi public string $name { get; } private readonly int $id, return $this; array_map( <?php #[\ReturnTypeWillChange] $this->logger->error( $this->logger->error( session_start(); session_start(); enum Status: string } catch (\Throwable $e) { private readonly int $id, public string $name { g final class Invoice enum Status: string final class Invoice PHP 7.4 → 8.5 PHP 7.4 → 8.5 PHP 7.4 → 8.5 session_start(); public function __construct( password_hash( final class Invoice mysqli_connect( public function __construct(
array_map( ?->getCustomer() mysqli_connect( try { PHP 7.4 → 8.5 #[\ReturnTypeWillChange] use Psr\Log\Logger <?php str_contains($path, '/v2') $this->logger->error( fn($x) => $x * 2 PHP 7.4 → 8.5 $result |> trim(...) } catch (\Throwable $e) { public function __construct( public function __construct( static fn(): never namespace App\Billing; try { fn($x) => $x * 2 str_contains($path, '/v2') namespace App\Billing; PHP 7.4 → 8.5 session_start(); SELECT * FROM orders public string $name { get; } fn($x) => $x * 2 declare(strict_types=1); use Psr\Log\LoggerInterface; array_map( PHP 7.4 → 8.5 <?php public string $name { get; } mysqli_connect( session_start(); PHP 7.4 → 8.5 ?->getCustomer() opcache.enable=1 random_bytes(32) E_DEPRECATED opcache.enable=1 try { E_DEPREC E_DEPRECATED enum Status: string opcache.enable=1 <?php array_map( match ($status) { composer require mysqli_connect( namespace App\Billing; composer require match ($status) { <?php public function __construct( readonly class Money final class Invoice str_contains($path, '/v2') str_contains($path, '/v2') readonly class Money str_contains($path, '/v2') session_start(); composer require #[\ReturnTypeWillChange] $result |> trim(...) namespace App\Billing; array_map( ?-> return $this; match ($status) { use Psr\Log\LoggerInterface; json_validate($body) public string $name { get; } mysqli_connect( try { session_start(); array_map( readonly class Money $result |> trim(...) $result |> trim(...) private readonly int $id, namespace App\Billing; enum Status: string array_map( mysqli_connect( static fn(): never random_bytes(32) array_map( re use Psr\Log\LoggerInterface; PHP 7.4 → 8.5 mysqli_connect( array_map( fn($x) => $x * 2 public function __construct( composer requi public string $name { get; } private readonly int $id, return $this; array_map( <?php #[\ReturnTypeWillChange] $this->logger->error( $this->logger->error( session_start(); session_start(); enum Status: string } catch (\Throwable $e) { private readonly int $id, public string $name { g final class Invoice enum Status: string final class Invoice PHP 7.4 → 8.5 PHP 7.4 → 8.5 PHP 7.4 → 8.5 session_start(); public function __construct( password_hash( final class Invoice mysqli_connect( public function __construct(
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 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.