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/
2. find think, click
3. Copy
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
5. Switch to think_git directory, and install the core
git clone https://github.com/top-think/framework.git thinkphp
6. Open think_git the public directory (executable file in the directory), appears at FIG. it means that the installation was successful
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
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/
installed PHP version you are using directory under
the rest of the points have been just fine next
command composer -v
to check whether the installation was successful (as shown below)
2. Then the following mirror command set
command: composer config -g repo.packagist composer https://packagist.phpcomposer.com
Enter to
mirror the reference address: https://pkg.phpcomposer.com/
3. TP5 frame download
command: composer create-project topthink/think=5.0.* tp5 --prefer-dist
TP5 may change their own
4. access the public directory, i.e., appears in FIG successfully installed the