1、第一步先换源  (composer会被墙)

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

如何安装指定版本/任意版本的thinkphp

 

2、安装指定版本的thinkphp

这里测试安装tp5.1.39的版本。注意  tp5_1_39 是文件名称,我这里安装在了C:\User\admin 目录下

composer create-project topthink/think tp5_1_39 5.1.39

如何安装指定版本/任意版本的thinkphp

如何安装指定版本/任意版本的thinkphp

3、如何查看此版本号(路径:tp5_1_39\thinkphp\library\think下的APP.php)

如何安装指定版本/任意版本的thinkphp

 

 

相关文章: