How to Install ThinkPHP 8.0 and Perform an Upgrade
This guide explains the system requirements for ThinkPHP 8.0, shows how to install Composer on different operating systems, provides step‑by‑step commands to install the framework, lists the main features of the 8.0 release, and offers instructions for upgrading from earlier versions.
Installation
ThinkPHP 8.0 requires PHP >= 8.0.0.
Install Composer
If Composer is not yet installed, run the following command on Linux or macOS:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composerOn Windows, download and run Composer-Setup.exe .
Install Stable Version
For a first‑time installation, change to your web‑root directory and execute:
composer create-project topthink/think tpThen open your browser at http://localhost:8000/ to see the welcome page.
Version Update Log
V8.0.0 (June 30, 2023) – rebuilt on PHP 8.0 with the following main features:
Rebuilt on PHP 8.0+
Added startWith , endWith and contain validation rules
Simplified regular expressions in the validation class
Optimized route detection
Upgraded PSR dependencies
Depends on think-orm 3.0
Upgrade Guide
Version 8.0 supports seamless upgrades from the 6.* series; upgrading from 6.0 specifically requires installing the think-filesystem library separately.
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.