Skip to content

Commit

Permalink
Merge branch '8.x' of github.com:top-think/think into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 8, 2025
2 parents 43983ad + ba3fd26 commit c7c11f6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
版权所有Copyright © 2006-2023 by ThinkPHP (http://thinkphp.cn)
版权所有Copyright © 2006-2025 by ThinkPHP (http://thinkphp.cn)
All rights reserved。
ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![](https://www.thinkphp.cn/uploads/images/20230630/300c856765af4d8ae758c503185f8739.png)

ThinkPHP 8.0
ThinkPHP 8
===============

## 特性
Expand All @@ -10,7 +10,7 @@ ThinkPHP 8.0
* 依赖`think-orm`3.0版本
* `6.0`/`6.1`无缝升级

> ThinkPHP8.0的运行环境要求PHP8.0+
> ThinkPHP8的运行环境要求PHP8.0+
现在开始,你可以使用官方提供的[ThinkChat](https://chat.topthink.com/),让你在学习ThinkPHP的旅途中享受私人AI助理服务!

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"require": {
"php": ">=8.0.0",
"topthink/framework": "^8.0",
"topthink/think-orm": "^3.0",
"topthink/think-orm": "^3.0|^4.0",
"topthink/think-filesystem": "^2.0"
},
"require-dev": {
"symfony/var-dumper": ">=4.2",
"topthink/think-dumper": "^1.0",
"topthink/think-trace": "^1.0"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
'hostport' => env('DB_PORT', '3306'),
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => env('DB_CHARSET', 'utf8'),
// 数据库编码
'charset' => env('DB_CHARSET', 'utf8mb4'),
// 数据库表前缀
'prefix' => env('DB_PREFIX', ''),

Expand Down
3 changes: 2 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------

use think\App;

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
5 changes: 3 additions & 2 deletions think
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env php
<?php
namespace think;

use think\App;

// 命令行入口文件
// 加载基础文件
require __DIR__ . '/vendor/autoload.php';

// 应用初始化
(new App())->console->run();
(new App())->console->run();

0 comments on commit c7c11f6

Please sign in to comment.