官網配置https://www.kancloud.cn/manual/thinkphp6_0/1037481
下載
composer create-project topthink/think test
這邊test就是你項目的名字
模版
如果要使用模版,就先進入到項目跟目錄,然後下載模版引擎
composer require topthink/think-view
然後就可以這樣使用了
<?php
namespace app\controller;
use app\BaseController;
use think\facade\Request;
use think\facade\View;
class Index extends BaseController
{
public function index()
{
return View::fetch('index');
}

這邊的view都是你自己新建的,然後index文件夾對應的就是你的index控制器(必須要和控制器同名),index.html對應的是fetch('index')中的index,可以換別的名字。
運行
然後把項目拷貝到 /opt/lampp/htdocs 下面
重點:要給你的項目下面的runtime權限(777),不然會500錯誤。