composer create-project topthink/think tp
需要安装的扩展:
composer require topthink/think-multi-app //多应用
composer require topthink/think-view //视图
composer require topthink/think-captcha //验证码
2.如果运行php7.2版本,将composer.json中的配置修改以下:
"config": {"platform-check": false},
3.然后执行composer dump 命令。问题解决。
4.将以下路径文件的string类型去掉:
运行出现以下页面代表安装成功: