ThinkPHP V5.1——12载初心不改,你值得信赖的PHP框架

期盼已久的V5.1.0版本正式发布,祝大家2018年元旦&新年快乐!
ThinkPHP自诞生以来一路走来已经12载,初心不改,并将继续努力,感谢大家的一路支持和贡献!特性
5.1版本主要特性包括:- 引入容器和Facade支持
- 依赖注入完善和支持更多场景
- 重构的(对象化)路由
- 路由跨域请求支持
- 支持注解路由
- 配置和路由目录独立
- 取消系统常量
- 助手函数增强
- 类库别名机制
- 模型和数据库增强
- 验证类增强
- 模板引擎改进
- 支持PSR-3日志规范
安装
5.1版本开始官方不提供下载包,请使用composer安装:composer create-project topthink/think tp注意,5.0并不能直接升级到5.1版本,参考官方的升级指导手册
官方完全开发手册 已经更新至最新扩展
ThinkPHP5.1可用的Composer扩展包,包括但不限于:topthink/think-captcha
topthink/think-mongo
topthink/think-oracle
topthink/think-queue
topthink/think-migration
topthink/think-image
topthink/think-testing
topthink/think-swoole
topthink/think-worker下面的composer包不依赖ThinkPHP核心框架,可以独立使用(ThinkPHP5.1已经内置不需要安装):topthink/think-cache
topthink/think-container
topthink/think-orm
topthink/think-template
topthink/think-validate
topthink/think-log捐赠我们:
2018-1-1 ThinkPHP官方团队
最佳答案