You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.5 KiB
84 lines
2.5 KiB

|
|
|
|
ThinkPHP 6.1
|
|
===============
|
|
|
|
[](https://travis-ci.org/top-think/framework)
|
|
[](https://scrutinizer-ci.com/g/top-think/framework/?branch=6.0)
|
|
[](https://scrutinizer-ci.com/g/top-think/framework/?branch=6.0)
|
|
[](https://packagist.org/packages/topthink/framework)
|
|
[](https://packagist.org/packages/topthink/framework)
|
|
[](http://www.php.net/)
|
|
[](https://packagist.org/packages/topthink/framework)
|
|
|
|
|
|
[官方服务](https://www.topthink.com) | [`ThinkAPI`——官方统一API](https://doc.topthink.com/think-api)
|
|
|
|
## 主要新特性
|
|
|
|
* 采用`PHP7`强类型(严格模式)
|
|
* 支持更多的`PSR`规范
|
|
* 原生多应用支持
|
|
* 系统服务注入支持
|
|
* ORM作为独立组件使用
|
|
* 全新的事件系统
|
|
* 模板引擎分离出核心
|
|
* 内部功能中间件化
|
|
* SESSION机制改进
|
|
* 日志多通道支持
|
|
* 规范扩展接口
|
|
* 更强大的控制台
|
|
* 对Swoole以及协程支持改进
|
|
* 对IDE更加友好
|
|
* 统一和精简大量用法
|
|
|
|
|
|
> ThinkPHP6.1的运行环境要求PHP7.2.5+,最高兼容PHP8.2
|
|
|
|
## 安装
|
|
|
|
~~~
|
|
composer create-project topthink/think tp
|
|
~~~
|
|
|
|
启动服务
|
|
|
|
~~~
|
|
cd tp
|
|
php think run
|
|
~~~
|
|
|
|
然后就可以在浏览器中访问
|
|
|
|
~~~
|
|
http://localhost:8000
|
|
~~~
|
|
|
|
如果需要更新框架使用
|
|
~~~
|
|
composer update topthink/framework
|
|
~~~
|
|
|
|
## 文档
|
|
|
|
[完全开发手册](https://www.kancloud.cn/manual/thinkphp6_0/content)
|
|
|
|
## 命名规范
|
|
|
|
`ThinkPHP6`遵循PSR-2命名规范和PSR-4自动加载规范。
|
|
|
|
## 参与开发
|
|
|
|
直接提交PR或者Issue即可
|
|
|
|
## 版权信息
|
|
|
|
ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
|
|
|
|
本项目包含的第三方源码和二进制文件之版权信息另行标注。
|
|
|
|
版权所有Copyright © 2006-2021 by ThinkPHP (http://thinkphp.cn) All rights reserved。
|
|
|
|
ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
|
|
|
|
更多细节参阅 [LICENSE.txt](LICENSE.txt)
|
|
|