ThinkPHP8.0 框架对6.*版本进行无缝升级教程
安装
ThinkPHP8.0的环境要求如下:
PHP >= 8.0.0
安装Composer
- 如果还没有安装 Composer,在 Linux 和 Mac OS X 中可以运行如下命令:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
- 在 Windows 中,
你需要下载并运行 Composer-Setup.exe。
安装稳定版
如果你是第一次安装的话,在命令行下面,切换到你的WEB根目录下面并执行下面的命令:
composer create-project topthink/think tp
在浏览器中输入地址:
http://localhost:8000/
会看到欢迎页面。恭喜你,现在已经完成ThinkPHP8.0的安装!
版本更新日志
V8.0.0(2023年6月30日)
基于PHP8.0重构版本,主要特性:
- 基于PHP8.0+重构
- 增加startWith、endWith及contain验证规则
- 简化验证类的正则
- 优化路由检测
- 升级PSR依赖
- 依赖think-orm3.0版本
升级指导
8.0版本支持6.*版本的无缝升级,如果是6.0版本升级,需要单独安装think-filesystem库。
THE END