Backend Development 2 min read

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.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
How to Install ThinkPHP 8.0 and Perform an Upgrade

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/composer

On 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 tp

Then 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.

backendPHPInstallationComposerThinkPHP
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.