前提:已安装composerphp
https://packagist.org/?query=thinkphp ,tp的各类安装包web
//安装命令, composer create-project topthink/think // 默认把tp项目放入到think文件夹 //composer create-project topthink/think tp // 放入tp文件夹 // 以上命令只使用任意一个 //启动服务 cd tp // 注意:必定要先进入thinkphp的目录,才能运行run php think run 而后就能够在浏览器中访问 ,composer自动生成了一个web服务器 http://localhost:8000 //更新框架 composer update topthink/framework
(安装命令在https://packagist.org/?query=thinkphp 底部有详细介绍)thinkphp
安装成功:json
1.项目目录下必须先创建 composer.json,详细路径:E:\wamp64\www\composer\composer.json浏览器
2.若是须要默认安装项目则须要配置composer.json ,不然为空,如:服务器
// 为空 { "require": { } }
3.若是项目里有配置默认安装项目,则须要运行 composer install,就会安装全部配置的项目composer
4.若是安装指定项目,则直接命令:composer create-project topthink/think框架
composer自动建立WEB服务环境,不依赖于wampserver,phpstudy 等环境ui