一:环境先搭建
任何目录下输入
composer -v
多试几个文件夹 如能正常显示 且版本比较新,则说明环境没问题
二:安装thinkphp
安装tp5.1
composer create-project topthink/think tp5.1 5.1.* --prefer-dist
安装tp5.0
1 composer create-project topthink/think tp5.0 5.0.* --prefer-dist
安装tp6.0
composer create-project topthink/think tp6.0 6.0.* --prefer-dist