# tp6 **Repository Path**: ake1205_admin_admin_admin/tp6 ## Basic Information - **Project Name**: tp6 - **Description**: thinkphp6的一个小demo - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-24 - **Last Updated**: 2024-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 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 create-project topthink/think tp6 cd tp6 # 安装多应用 composer require topthink/think-multi-app # 安装验证码 composer require topthink/think-captcha # 安装视图引擎 composer require topthink/think-view # 安装模板引擎 composer require topthink/think-template # 安装阿里巴巴的短信扩展 composer require alibabacloud/sdk ~~~ [阿里巴巴短信使用](https://help.aliyun.com/document_detail/53111.html?spm=a2c1g.8271268.10000.150.772fdf25EkqClS) [阿里云 Composer 全量镜像](https://developer.aliyun.com/composer?spm=a2c4g.11186623.2.11.2dd36850VO1sQc) 如果需要更新框架使用 ~~~ composer update topthink/framework ~~~ ```shell # 分析nginx的日志 的相关命令 # 这个是分析qps时间倒序 cat www.tp6.com_acess.log | awk '{print $4}' | uniq -c | sort -n # 这个是分析qps时间正序 cat www.tp6.com_acess.log | awk '{print $4}' | uniq -c | sort -r # 这个是针对某个方法的分析 cat www.tp6.com_acess.log | grep "verify/index" | awk '{print $4}' | uniq -c | sort -n ``` ## 文档 [完全开发手册](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)