# 1. phpstudy
* 下載安裝運行所需的[VC庫](http://www.phpstudy.net/a.php/184.html)
* 下載[phpstudy2016](http://www.phpstudy.net/a.php/208.html),解壓版即可
* 運行phpstudy,php版本用7.0
# 2. Composer
* 下載安裝[Composer](https://getcomposer.org/Composer-Setup.exe)
* phpstudy打開php擴展設置php_openssl
* web根目錄下面并執行下面的命令下載tp5,或從[官網下載](http://www.thinkphp.cn/):
`composer create-project topthink/think tp5 dev-master --prefer-dist`
# 3. 相關設置
* phpstudy設置網站根目錄為D:\phpStudy\WWW\tp5\public
* 修改本機的hosts文件把tp5.com指向本地127.0.0.1
* pathinfo方式的URL訪問:phpstudy中打開 php.ini 中參數cgi.fix_pathinfo=1,即可使用下述方式訪問`http://tp5.com/index.php/index/index/index`