5.2.12

Latest release in branch 5.2
Released 3 months ago (January 15, 2026)

Software CakePHP
Branch 5.2
First official release version 5.2.0
First official release date 1 year ago (March 29, 2025)
Supported
PHP versions
PHP 8.1+
Release notes https://github.com/cakephp/cakephp/releases/tag/v5.2.12
Source code https://github.com/cakephp/cakephp/tree/v5.2.12
Documentation https://book.cakephp.org/5/en/index.html
Download https://book.cakephp.org/5/en/installation.html
CakePHP 5.2 Releases View full list

What is New in CakePHP 5.2

CakePHP 5.2 introduces useful tools for console commands, testing, database handling, and form helpers. It adds new features like a counter cache regeneration command, better debugging in tests, and support for import maps in JavaScript. This release focuses on improving developer workflow, correctness, and convenience in building applications.

New Console Tools

A new command helps manage counter caches:

  • cake counter_cache: Regenerates counters for models that use CounterCacheBehavior.

Console commands now support better parameter parsing:

  • Arguments and options can use a separator like --names=foo,bar.

Testing Improvements

  • ConsoleIntegrationTestTrait::debugOutput(): Makes it easier to debug output from console command integration tests.
  • TestFixture::$strictFields: When set to true, it raises an error if fixture records contain fields not present in the database schema.

Database and Migration Enhancements

  • New nativeuuid type: Works with UUID columns in MySQL (including MariaDB) and falls back to uuid in other drivers.
  • Additional reflection methods in the database layer to simplify future migration tasks.

Helper Updates

  • FormHelper::deleteLink(): A simple wrapper to create delete links that use the DELETE HTTP method.
  • HtmlHelper::importmap(): Helps define import maps for managing JavaScript modules.

Other Additions

  • Custom exceptions can now be handled specifically in ErrorController for tailored error responses.

Behavior Changes

Several adjustments improve code correctness and consistency. Check the migration guide for full details on these updates to avoid surprises when upgrading.

Why Upgrade to CakePHP 5.2

CakePHP 5.2 delivers practical enhancements that streamline testing, console work, and common tasks in web development. With better tools for debugging, database handling, and asset management, it helps teams build more reliable applications efficiently.

Releases In Branch 5.2

Version Release date
5.2.12 3 months ago
(January 15, 2026)
5.2.11 3 months ago
(January 09, 2026)
5.2.10 4 months ago
(December 05, 2025)
5.2.9 6 months ago
(October 17, 2025)
5.2.8 6 months ago
(September 24, 2025)
5.2.7 7 months ago
(August 31, 2025)
5.2.6 8 months ago
(August 02, 2025)
5.2.5 9 months ago
(June 21, 2025)
5.2.4 11 months ago
(May 17, 2025)
5.2.3 11 months ago
(April 24, 2025)
5.2.2 1 year ago
(April 18, 2025)
5.2.1 1 year ago
(April 06, 2025)
5.2.0 1 year ago
(March 29, 2025)
5.2.0-RC1 1 year ago
(March 01, 2025)