2024-07-09 18:20:04 +08:00
|
|
|
# thinkphp-base-starter
|
2024-07-09 17:50:32 +08:00
|
|
|
|
2024-07-09 18:20:04 +08:00
|
|
|
## 技术栈
|
|
|
|
|
|
|
|
- phpenv
|
|
|
|
- php8.2
|
|
|
|
- thinkphp 8.0
|
|
|
|
- 基于php`8.0+`重构
|
|
|
|
- 升级`PSR`依赖
|
|
|
|
- 依赖`think-orm`3.0版本
|
|
|
|
|
|
|
|
## 文档
|
|
|
|
|
|
|
|
[ThinkPHP8 开发手册](https://doc.thinkphp.cn/v8_0/preface.html)
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
```sh
|
|
|
|
composer create-project topthink/think tp
|
|
|
|
```
|
|
|
|
|
|
|
|
启动服务
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cd tp
|
|
|
|
php think run
|
|
|
|
```
|
|
|
|
|
|
|
|
然后就可以在浏览器中访问
|
|
|
|
|
|
|
|
```sh
|
|
|
|
http://localhost:8000
|
|
|
|
```
|
|
|
|
|
|
|
|
如果需要更新框架使用
|
|
|
|
|
|
|
|
```sh
|
|
|
|
composer update topthink/framework
|
|
|
|
```
|
|
|
|
|
|
|
|
## 命名规范
|
|
|
|
|
|
|
|
遵循PSR-2命名规范和PSR-4自动加载规范。
|