4.6 Migration Guide β
CakePHP 4.6 is an API compatible upgrade from 4.0. This page outlines the deprecations and features added in 4.6.
Upgrading to 4.6.0 β
You can can use composer to upgrade to CakePHP 4.6.0:
php composer.phar require --update-with-dependencies "cakephp/cakephp:^4.6"
NOTE
CakePHP 4.6 requires PHP 7.4 or greater.
New Features β
Cache β
RedisEnginenow supports atlsoption that enables connecting to redis over a TLS connection. You can use thessl_ca,ssl_certandssl_keyoptions to define the TLS context for redis.
Console β
- Optional
Commandarguments can now have adefaultvalue.
I18n β
Number::formatter()andcurrency()now accept aroundingModeoption to override how rounding is done.
View β
NumberHelper::format()now accepts aroundingModeoption to override how rounding is done.