截至目前thinkphp已经升级到8的版本了,首选打开thinkphp的官网https://www.thinkphp.cn/
https://doc.thinkphp.cn/v8_0/preface.html
我们不难看出它只支持php8的版本
启动phpenv软件然后切换到php8.0以上版本然后打开终端
因为在phpenv中已经内置了composer
我们直接输入一下命令
composer create-project topthink/think tp
然后我们在终端输入
php think run
即可运行项目
然后在浏览器输入http://localhost:8080/
- THE END -
最后修改:2024年1月2日
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.cairen.fun/?p=15
共有 0 条评论