Since the5.2
version was changed to6.0
, the official has been committed to optimizing the architecture and streamlining the core. At the same time, it is also preparing manuals and testing work. After nearly one month of development, After iteration, the official announced the release of ThinkPHP6.0RC2
version.
Main updates
Compared with the RC1 version, the updates and adjustments are larger. The main updates are as follows:
● The underlying architecture has been optimized and adjusted for coroutines
● Add WEB application management classHttp
● Add application initialization service and service registration mechanism
● Use event system to take over query events and model events
●Session
Class refactoring, no longer uses PHP built-in session
●Cookie
The class only supports setting and writing, and no longer supports reading
● Cancel the dynamic setting function of theConfig
class
● Part of the core functions are middleware (page Trace, multi-language, request caching and Session initialization)
● Cancel the conventional configuration file
● Add driver interface specification driver development
● Improve Db class and query class
● Streamline some unnecessary class libraries
● Improve route registration
● Due to abnormal needsView
class was changed to built-in, but only supports native PHP templates by default
● A lot of detail improvements and corrections
Due to architectural adjustments, it is recommended that users of the previous 5.2RC version reinstall version 6.0 for testing.
Installation framework
6.0
version only supportscomposer
installation (it is recommended to use domestic mirror installation), also Git installation is no longer supported. Since it has not been officially released, currently only the6.0.x-dev
development version is supported.
composer create-project topthink/think=6.0.x-dev tp
About extensions
Some commonly used official extensions have been basically upgraded, but there may still be problems. The official will continue to improve and fully test them. Here Please do not rely entirely on these extensions before.
Development Manual (Preview Version)
The official complete development manual has been released, but it is only a preview version and will be continuously improved as the framework is updated. Everyone is welcome to provide timely feedback on questions and suggestions during the use and learning process to help us improve the new version as soon as possible.
Related recommendations:
《ThinkPHP6.0 version is officially released, fully embracing the component development trend》
《ThinkPHP v6.0 Framework source code download》
《ThinkPHP5.2 releases Beta2 version - unifying and streamlining a large number of usage》
《[Exclusive full illustration]ThinkPHP6 Framework download and installation》