The environment requirements of ThinkPHP6.0 are as follows:

PHP >= 7.1.0 Thinkphp6 start, must be installed and updated by Composer

1. Install the Composer

Download and run (Window) Composer- setup.exe

The installation steps are as follows:

The first step:

The second step:

Step 3:

Step 4:

Step 5:

Step 6:

Step 7:

2. Install Thinkphp6

Start by switching to your PHP environment root directory

d:
cd phpstudy_pro/WWW
Copy the code

Mytp6 is the directory to download Thinkphp6.

composer create-project topthink/think mytp6
Copy the code

Installation error: Check the current installation environment of Composer (mainly check the download source, then restore the official source)

composer config -g -l repo.packagist
composer config -g --unset repos.packagist
Copy the code

3. Configure and run Thinkphp6

Step 1: Open phpStudy integration software -> site domain name management Step 2: website domain name: www.mytp6.com Step 3: website directory: mytp6/public Step 4: directly enter the domain name in the browser: www.mytp6.com

4. The file

├─ App │ ├─ Controller │ ├─ Model │ ├─… ├─ ├─common.php Public function file │ ├─ class.php Event Definition file │ ├─config Config │ ├─app.php Application │ ├─cache.php ├─ Console. PHP Console configuration │ ├─ Cookie. PHP cookie configuration │ ├─database.php database configuration │ ├─filesystem PHP Middleware │ ├─ ├─route. PHP URL and Route │ ├─session. PHP session │ ├─trace.php Trace │ ├─ ├─ class.exe ├─ class.exe ├─ class.exe ├─ class.exe ├─ class.exe ├─ class.exe │ ├ ─ public WEB directory (external access directory) │ ├ ─ index. The PHP file entrance │ ├ ─ the router. The PHP quick test file │ └ ─. Htaccess file for apache rewrite │ ├ ─ the extend extension libraries directory ├ ─ the runtime Application runtime directory (writable, Env Environment variables sample file ├─ Composer. Json Composer Definition file ├─ License.txt Authorization file ├─ readme.md README File ├─ Think command line entry file