Home>Article>Daily Programming> How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

藏色散人
藏色散人 Original
2018-09-20 16:33:00 14385browse

This article mainly introduces how todownload and install the ThinkPHP5.1 framework through composer.

ThinkPHP framework, referred to as TP framework, is an open source PHP development framework. For PHP beginners, the thinkPHP framework is particularly easy to get started, and website programs can be quickly developed and deployed through this framework.

I believe everyone knows that ThinkPHP framework resources can be downloaded from its official website, but I don’t know if you have found that the latest version of the TP framework can no longer be downloaded from the official website.

ThinkPHP official website link:www.thinkphp.cn

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

As shown in the picture above, the latest download from the official website is only version 5.0 of. And when we search the ThinkPHP5.1 manual, we can find the following situation.

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

As shown in the picture above, the official website no longer provides a download version. So actually it is very simple to download the ThinkPHP5.1 version.

First of all, in the previous article [How to install composer under Windows system?] has taught you how to install composer. Friends in need can refer to it first.

Below we will introduce in detail the specific steps ofdownloading and installing the ThinkPHP5.1 frameworkthrough composer.

Step 1: Open the composer official website and click on the installation package list

composer official website:https://www.phpcomposer.com/

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

Step 2: Search thinkphp and click on the first option in the picture belowHow to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

Step 3: Copy the code command

as shown below. In the lower right corner of the picture, you can select the downloaded thinkphp version, and then copy the "composer create-project topthink/think" command.

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

Step 4: Open the administrator controller and find the website root directory.

Here we are using the phpstudy environment, so the root directory of the website is under www, then paste the command "composer create-project topthink/think", and then this command Write a folder name at the end. Here we take tp5.1, which means download thinkphp5.1 into this folder.

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

As shown in the picture below thinkphp5.1 was successfully downloaded and installed!

How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos)

#The above is an introduction to the simple method of downloading and installing the thinkphp5.1 framework through composer. Hope it helps those in need!

The above is the detailed content of How to download and install the ThinkPHP5.1 framework through Composer? (Pictures + Videos). 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