What is CakePHP?
CakePHP is a free, open-source, rapid development framework for PHP. Itās a foundational structure for programmers to create web applications. Since it’s based on MVC architecture, that makes it structured, rapid and more flexible.
Today, the CakePHP team released the new version : AlphaĀ version in April. A new chapter for CakePHP with a stable API. CakePHP 3.x moves into maintenance mode while 2.x moves into security release mode.
How to upgrade 3.x website?
CakePHP 4.0 contains a lot of breaking changes and it’s not compatible with 3.x releases. If you attempt to migrate your website you have to follow thisĀ migration guide.Ā It’s covering all the deprecated, removed, and new features.
Additionally, CakePHP team offers anĀ upgrade guideĀ which gives a step-by-step guide and CLI tool to help us upgrade our application. To help improve these documents we have to help them collect more feedback from up while upgrading by opening issues in theĀ official repository
Key Features
- PHP 7.2 required.
- Streamlined APIs with all deprecated methods and behavior removed.
- Additional typehints across the framework giving you errors faster.
- Improved error messages across the framework.
- A refreshed application skeleton design.
- New database types for fixed length strings (CHAR), datetime with microseconds, and datetime with timezone types.
- TableĀ now featuresĀ OrFailĀ methods that raise exceptions on failure making error handling more explicit and straightforward.
- Middleware for CSP headers, Form tampering prevention, and HTTPS enforcement.
- Cake\Routing\AssetĀ to make generating asset URLs simple from anywhere in your application code.
- FormHelperĀ now generates HTML5 validation errors.
- FormHelperĀ now generates HTML5 datetime input elements.
Source: https://bakery.cakephp.org/2019/12/15/cakephp_400_released.html
Leave a Reply