This article mainly introduces how to download 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
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.
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 of downloading and installing the ThinkPHP5.1 framework through composer.
Step 1: Open the composer official website and click on the installation package list
composer official website:https://www.phpcomposer.com/
Step 2: Search thinkphp and click on the first option in the picture below
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.
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.
As shown in the picture below thinkphp5.1 was successfully downloaded and installed!
#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!