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
The post CakePHP 4.0 ๐ Strawberry is out, a new Chapter for PHP dev appeared first on C.Khalifa.
Top comments (0)