TP5安裝有多種方式,此處有三種php
開發環境介紹git
PHP版本.>=5.4.0github
PDO MbString CURL PHP Extensionsql
Mysqlthinkphp
Apache Nginxcomposer
使用git安裝網站
git 安裝
git clone --depth=1 https://github.com/top-think/think.git think_git
cd think_git
git clone --depth=1 https://github.com/top-think/framework.git thinkphp開發
注 後面的 thinkphp 爲項目名稱it
使用Composer 安裝io
在composer安裝方法裏,提早已經切換到國內鏡像了,要先輸入
composer config -g repositories.packagist composer https://packagist.phpcomposer.com
等有反應了再去安裝
composer create-project --prefer-dist topthink/think think_composer
經過Download下載安裝
直接在網站下載 完整版(或其餘版),配置到本地開發的目錄中便可。