Simple installation method of TP5.0

1, Check your PHP configuration environment

First check whether your PHP configuration environment meets the following conditions

PHP > = 5.4.0 (requires php version must be greater than 5.4)

PDO PHP Extension (requires pdo extension)

MBstring PHP Extension (requires MBstring extension)

CURL PHP Extension (CURL extension required)

If you don’t have the above extension, you can open the php.ini file to find the corresponding extension and remove the semicolon in front and restart the apache server

2, download the framework package

a, you can download it directly from the official website (http://thinkphp.cn)

b, Use the composer installation method

It is recommended to use the composer installation method. It is very convenient to use composer to control the version of the internal framework of the code

First you need to install composer,

In Windows, you need Download and run Composer-Setup.exe. Then double-click to run and the installation will be successful. This method of installation has already configured the environment variable page for you by default. You do not need to configure the environment variables anymore.

After the installation is completed, enter composer in the command line and if the following appears The pattern proves that the installation is successful

微信图片_20180307114936.png

After the installation is completed, the image file needs to be converted to domestic, otherwise the installation speed will be very slow every time

Just open the CMD command line (Press win R key) Enter cmd and press Enter, enter

composer config -g repo.packagist composer https://packagist.phpcomposer.com

that is To

install thinkphp5.0, you only need to open the root directory of your project and enter shift. Right-click the mouse to open the command window here and enter the following command line:

composer create-project topthink /think=5.0.* tp5 --prefer-dist

Then there will be an additional tp5 folder in the root directory of your project. This is the TP5.0 framework package

c, use git to install

, download the git software, right-click git in the project root directory, and then enter

https://github.com/top-think/think It will be downloaded automatically

You can also download it yourself on the code cloud, open the following URL

https://git.oschina.net/liu21st/thinkphp5.git

Click the HTTPS copy button and then use the git command line in the project root directory to enter git (the copied address is enough) to download

微信图片_20180307115959.png


Continuing Learning
||
<?php echo "ThinkPHP的安装方法";
submitReset Code