Home >PHP Framework >ThinkPHP >Installation process of thinkphp6
The framework is essential for our development, so we need to know how to install the thinkphp6 (also called tp6) framework. This article will teach you how to install the tp6 framework. Friends in need can take a look.
We have no way to download the tp6 framework directly from the official website, we can only download it through composer
. First we need to enter ThinkPHP6.0 Complete Development Manual. You can see the installation in the basics. Click Composer-Setup.exe
to install Composer
directly.
# After downloading, double-click to enter the installation and go to the next step. The installation will be successful. We use the win
key to enter cmd to open the command line. First we need to check the php version. If it is lower than 7, there is no way to install tp6.
Enter
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
on the command line and you can proceed to the next step if no error is reported. After entering
composer create-project topthink/think tp
on the command line, your computer will automatically install tp6. The following code is automatically generated. We only need to observe the word succeed
, which indicates that our tp6 installation is successful.
After the tp6 installation is completed, we need to test it. Enter
php think run
on the command line and enter
http://localhost:8000/
or ## on the browser. #
http://127.0.0.1:8000/You can see the welcome page. Congratulations, you have now completed the installation of
ThinkPHP6.0.
thinkphp6 The latest 10 thinkphp video tutorial recommendations
The above is the detailed content of Installation process of thinkphp6. For more information, please follow other related articles on the PHP Chinese website!