http://www.php.cn/wenda/159638.html
1. ThinkPHP Memorabilia
-
April 27, 2017, ThinkPHP5.1-beta.1 release
-
December 31, 2017, ThinkPHP5.1.0 release, marking the rapid access of iterations
-
March 3, 2019, ThinkPHP5.1 iteration to the 35th version update (5.1.35)
-
March 22, 2019, ThinkPHP5.2 the development version also released dev
Now tell you a good news, bad news, to hear first?
First the bad news: there will never be ThinkPHP5.2 it on the rivers and lakes!
The good news: ThinkPHP5.2 it has officially changed its name to ThinkPHP6.0
2. The core functions and main features
-
Full support for the use of strongly typed properties PHP7
-
Full support for almost all of the PSR development specifications
-
To achieve a multi-application support
-
Introduction of a comprehensive system to replace the event behavior
-
The new service application architecture
-
Views and templating engine to separate, more flexible project configuration
-
IDE assistant, the editor intellisense more accurate
-
The original version of some functions and class methods were unified and streamlined
3. Environmental requirements and source code download
3.1 Environmental requirements: PHP 7.1+
2.2 Source download
As we all know, from the beginning ThinkPHP5.1, the official website is no longer providing a framework source code download it
So, ThinkPHP6.0 (hereinafter referred to TP6) and certainly not from the official website to download
Where to download it? Two ways
Composer and Git
reference
Composer download and install tutorial: http://www.php.cn/code/30828.html
Git Tutorial: http://www.php.cn/tool/git/
Here the most common, is the official recommended Composer way to download the source code framework
4. Composer download and install
4.1 Mac / Linux
1 2 3 4 5 |
|
Note: MacOS 10.14, user / local / bin folder does not exist, you need to manually create
1 2 3 4 5 |
|
4.2 Windows
Open https://www.phpcomposer.com/: setup.exe installation program can be downloaded
4.3 Test
Terminal type: composer commands, see the command prompt information indicating successful installation
Version 4.4 update
1 |
|
5. TP6 frame codes download
(1) Open Composer's official website: https://www.phpcomposer.com/
Open the list of installation packages, which would prevent a branch to https://packagist.org/
Enter search keywords: topthink, will be listed in the following component packages associated with the framework of ThinkPHP
After opening, you can see ThinkPHP6.0 version of the label and installation instructions
The following is a detailed framework source code download process:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
After the download is complete, open the project directory, for example: tp6, see the following directory structure:
6. Test frame
-
As used herein framework built-in command test think
-
This command will start a local temporary Web server, function and php -S localhost: 8000 is the same
Detail steps are as follows:
1 2 3 4 5 6 7 8 9 10 11 |
|
Open your browser and follow the prompts, enter in the address bar:
127.0.0.1:8000 or localhost: 8000, the interface is shown below
Congratulations, ThinkPHP6 framework has been successfully installed ~~
? Want to download it now to experience TinkPHP6 Source ruthless poke here: http://www.php.cn/xiazai/code/5685
Related reference recommended:
1. ThinkPHP6.0 version officially released, to embrace the trend component-based development