通过composer 安装 tp5 并通过命令行创建一个控制器

 首先打开命令行将文件目录切换到要安装Tp5的目录下执行

composer create-project topthink/think tp5 dev-master --prefer-dist
得到

此时TP5就安装成功了
将目录切换到TP5目录里执行 PHP think make:Controller admin/index


 
 
 
 
 
原文地址:https://www.cnblogs.com/lucky2017/p/7883834.html