# xiaohe_admin **Repository Path**: sojuli/xiaohe_admin ## Basic Information - **Project Name**: xiaohe_admin - **Description**: No description available - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-03 - **Last Updated**: 2024-06-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Nginx配置 ~~~ server { listen 80; server_name tp6.one.net; root "D:\\workspace\\www\\xiaohe_admin\public"; location / { #访问路径的文件不存在则重写URL转交给ThinkPHP处理 if (!-e $request_filename) { #rewrite ^/index.php(.*)$ /index.php?s=/$1 last; #rewrite ^/(.*)$ /index.php/$1 last; rewrite ^(.*)$ /index.php?s=/$1 last; break; } } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #fastcgi_param PATH_INFO $fastcgi_path_info; #fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; #定义变量 $path_info ,用于存放pathinfo信息 set $path_info ""; #定义变量 $real_script_name,用于存放真实地址 set $real_script_name $fastcgi_script_name; #如果地址与引号内的正则表达式匹配 if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { #将文件地址赋值给变量 $real_script_name set $real_script_name $1; #将文件地址后的参数赋值给变量 $path_info set $path_info $2; } #配置fastcgi的一些参数 fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info; } } ~~~ ThinkPHP 6.0 =============== > 运行环境要求PHP7.1+,兼容PHP8.0。 [官方应用服务市场](https://market.topthink.com) | [`ThinkAPI`——官方统一API服务](https://docs.topthink.com/think-api) ThinkPHPV6.0版本由[亿速云](https://www.yisu.com/)独家赞助发布。 ## 主要新特性 * 采用`PHP7`强类型(严格模式) * 支持更多的`PSR`规范 * 原生多应用支持 * 更强大和易用的查询 * 全新的事件系统 * 模型事件和数据库事件统一纳入事件系统 * 模板引擎分离出核心 * 内部功能中间件化 * SESSION/Cookie机制改进 * 对Swoole以及协程支持改进 * 对IDE更加友好 * 统一和精简大量用法 ## 安装 ~~~ composer create-project topthink/think tp 6.0.* ~~~ 如果需要更新框架使用 ~~~ composer update topthink/framework ~~~ ## 文档 [完全开发手册](https://www.kancloud.cn/manual/thinkphp6_0/content) ## 参与开发 请参阅 [ThinkPHP 核心框架包](https://github.com/top-think/framework)。 ## 版权信息 ThinkPHP遵循Apache2开源协议发布,并提供免费使用。 本项目包含的第三方源码和二进制文件之版权信息另行标注。 版权所有Copyright © 2006-2020 by ThinkPHP (http://thinkphp.cn) All rights reserved。 ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。 更多细节参阅 [LICENSE.txt](LICENSE.txt)