基于Thinkphp6的PHP-web项目创建常用命令

1.创建项目

composer create-project topthink/think 项目名

2.多应用模式扩展

composer require topthink/think-multi-app

3.创建应用

php think build 应用名

4.使用think-view模板引擎

composer require topthink/think-view

5.composer 安装uuid

composer require ramsey/uuid

6.隐藏入口

if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?s=/$1 last;
    break;
}

猜你喜欢

转载自blog.csdn.net/gudada010/article/details/126214135