怎样搭建PHP的thinkphp环境

cairen 2024-1-2 117 1/2

截至目前thinkphp已经升级到8的版本了,首选打开thinkphp的官网https://www.thinkphp.cn/

怎样搭建PHP的thinkphp环境

https://doc.thinkphp.cn/v8_0/preface.html

怎样搭建PHP的thinkphp环境

我们不难看出它只支持php8的版本

怎样搭建PHP的thinkphp环境

启动phpenv软件然后切换到php8.0以上版本然后打开终端

怎样搭建PHP的thinkphp环境

因为在phpenv中已经内置了composer

我们直接输入一下命令

composer create-project topthink/think tp

然后我们在终端输入

php think run

即可运行项目

然后在浏览器输入http://localhost:8080/

怎样搭建PHP的thinkphp环境

- THE END -

cairen

1月02日23:01

最后修改:2024年1月2日
0

非特殊说明,本博所有文章均为博主原创。

共有 0 条评论