Stable Release in branch 5.2
5.2.15
Released 16 Jul 2026
(22 days ago)
SoftwareCakePHP
Version5.2
Status
Supported
Supported
PHP versions
PHP 8.1+
Initial release5.2.0
29 Mar 2025
(1 year ago)
Latest release5.2.15
16 Jul 2026
(22 days ago)
End of security fixesTBD
(Supported)
Release noteshttps://github.com/cakephp/cakephp/releases/tag/5.2.15
Source codehttps://github.com/cakephp/cakephp/tree/5.2.15
Documentationhttps://book.cakephp.org/5/en/index.html
Downloadhttps://book.cakephp.org/5/en/installation.html
CakePHP 5.2 ReleasesView 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

VersionRelease date
5.2.1516 Jul 2026
(22 days ago)
5.2.1413 Jul 2026
(25 days ago)
5.2.1323 May 2026
(2 months ago)
5.2.1214 Jan 2026
(6 months ago)
5.2.1108 Jan 2026
(6 months ago)
5.2.1005 Dec 2025
(8 months ago)
5.2.916 Oct 2025
(9 months ago)
5.2.823 Sep 2025
(10 months ago)
5.2.730 Aug 2025
(11 months ago)
5.2.601 Aug 2025
(1 year ago)
5.2.520 Jun 2025
(1 year ago)
5.2.416 May 2025
(1 year ago)
5.2.323 Apr 2025
(1 year ago)
5.2.217 Apr 2025
(1 year ago)
5.2.106 Apr 2025
(1 year ago)
5.2.029 Mar 2025
(1 year ago)
5.2.0-RC101 Mar 2025
(1 year ago)