Home>Article> ThinkPHP6.0RC2 version released-architecture upgrade, streamlined core

ThinkPHP6.0RC2 version released-architecture upgrade, streamlined core

藏色散人
藏色散人 forward
2019-04-23 10:28:21 6397browse

Since the5.2version 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.0RC2version.

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

SessionClass refactoring, no longer uses PHP built-in session

CookieThe class only supports setting and writing, and no longer supports reading

● Cancel the dynamic setting function of theConfigclass

● 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 needsViewclass 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.0version only supportscomposerinstallation (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-devdevelopment 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

Statement:
This article is reproduced at:ThinkPHP. If there is any infringement, please contact admin@php.cn delete