Acquaintance ThinkPHP5 of the installation process in two ways

ThinkPHP5 environmental requirements are as follows:

PHP >= 5.4.0
PDO PHP Extension
CURL PHP Extension
Mb_String PHP Extension

As the machine has been PHPStudy and install git, I do not see them here.
Directly start the installation process ThinkPHP5 it ~
a, Git installed
1. Open https://github.com/top-think/
Here Insert Picture Description
2. find think, click
Here Insert Picture Description
3. Copy
Here Insert Picture Description

4. Right-open WWW directory Git Bash Here, enter git clone [--dapth=1] https://github.com/top-think/think.git think_git
-dapth = 1 refers to a new clone codes
Here Insert Picture Description
5. Switch to think_git directory, and install the core
git clone https://github.com/top-think/framework.git thinkphp
Here Insert Picture Description
6. Open think_git the public directory (executable file in the directory), appears at FIG. it means that the installation was successful
Here Insert Picture Description
in fact the beginning there was an error:

Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable (T_VARIABLE)

I checked the extension, no problem. Then try to switch from PHP version 5.5.38 to 5.6.27,
emmm not that good> = 5.4 on the line it
Here Insert Picture Description
so you can try to change to change your PHP version and extended when an error occurs, maybe ok.

Two, Composer installed
1. Install Composer
https://getcomposer.org/download/
Here Insert Picture Description
installed PHP version you are using directory under
Here Insert Picture Description
the rest of the points have been just fine next
command composer -vto check whether the installation was successful (as shown below)
Here Insert Picture Description
2. Then the following mirror command set
command: composer config -g repo.packagist composer https://packagist.phpcomposer.comEnter to
mirror the reference address: https://pkg.phpcomposer.com/
Here Insert Picture Description
3. TP5 frame download
command: composer create-project topthink/think=5.0.* tp5 --prefer-dist
TP5 may change their own
Here Insert Picture Description
4. access the public directory, i.e., appears in FIG successfully installed the
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/syy0201/article/details/89424465