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下载安装
直接在网站下载 完整版(或其余版),配置到本地开发的目录中便可。