Home  >  Article  >  PHP Framework  >  Installation process of thinkphp6

Installation process of thinkphp6

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-03-26 17:50:302861browse

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.

Installation process of thinkphp6

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.

Installation process of thinkphp6

# 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.

Installation process of thinkphp6

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.

Related learning recommendations:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn