## **composer 安装ThinkPHP 6.0**
~~~
composer create-project topthink/think tp
~~~
这里的`tp`目录名你可以任意更改,这个目录就是我们后面会经常提到的应用根目录。
## **Apache重写**
.htaccess 文件
~~~
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
~~~
## **资料**
* [【ThinkPHP 6.0 完全开发手册】](https://ihavenolimitations.xyz/manual/thinkphp6_0/1037479)