composer安裝TP5.1
1.安裝phpStudy
(2)選擇版本號php-7.2.1-nts+Apache
2.安裝composer.phar
![](http://static.javashuo.com/static/loading.gif)
(2)點擊「下載」
![](http://static.javashuo.com/static/loading.gif)
(3)找到下載內容的地方,去下載當前最新版本的Composer-Setup.exe
![](http://static.javashuo.com/static/loading.gif)
(4)下載到你想下載的文件夾中,例如我下載在E:\myphp_www\PHPTutorial\WWW\CSshop文件夾下面,下載後咱們能夠在文件夾中看到Composer-Setup.exe
![](http://static.javashuo.com/static/loading.gif)
①點擊安裝Composer-Setup.exe
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
②安裝完後的目錄php
![](http://static.javashuo.com/static/loading.gif)
2.cmd測試composer.phar的可用性
(1)打開命令窗口:win+R而後輸入cmd按回車如圖嗎,獲得這個就是命令窗口
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
(2)找到composer.phar的文件位置(個人安裝位置:E:\myphp_www\PHPTutorial\WWW\CSshop)
![](http://static.javashuo.com/static/loading.gif)
(3)測試composer.phar的可用性 語句:咱們phpstudy中所用php版本號的php.exe所在路徑+一個空格+composer.phar+空格-V(最後一個V必須是大寫字母V)
![](http://static.javashuo.com/static/loading.gif)
(4)下載中國鏡像
![](http://static.javashuo.com/static/loading.gif)
②選擇方法一:
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
(5)安裝TP5.1
![](http://static.javashuo.com/static/loading.gif)
②進行命令的複製:
![](http://static.javashuo.com/static/loading.gif)
③粘貼到cmd命令中:php.exe路徑+composer.phar+剛剛複製的語句
![](http://static.javashuo.com/static/loading.gif)
(6)安裝tp5完成目錄
![](http://static.javashuo.com/static/loading.gif)
(7)給TP5.1配置一個虛擬主機與一個域名
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
(8)配置好域名以後,咱們進行對TP5的訪問:
![](http://static.javashuo.com/static/loading.gif)
歡迎關注本站公眾號,獲取更多信息