安装指定的thinkphp6版本教程
·
如果你直接按照thinkphp6文档提示安装
#安装thinkphp命令,tp6test.com是你项目的名称,可以按实际情况修改
composer create-project topthink/think tp6test.com
#进入项目目录
cd tp6test.com
#查看安装的thinkphp版本,会发现输出了version 8.1.4
php think -v
大概率会安装成v8.1.3,因为不加版本号默认装最新版(现在是 TP8),要 TP6 必须显式指定 6.x 版本。
1、重新安装 6.1 最新稳定(推荐,PHP ≥ 7.2.5)
#安装thinkphp命令,tp6test.com是你项目的名称,可以按实际情况修改
composer create-project "topthink/think:^6.1" tp6test.com
#进入项目目录
cd tp6test.com
#查看安装的thinkphp版本,会发现输出了version 6.1.4
php think -v
2、安装其他thinkphp6版本方法
# 安装 6.0 最新稳定(兼容 PHP 7.2+)
composer create-project topthink/think=6.0.* tp6test.com
#安装具体版本(例如 6.0.9)
composer create-project topthink/think=6.0.9 tp6test.com
更多推荐


所有评论(0)