ThinkPHP5.0.0 RC1版本发布--为API开发而设计
经过一段时间的测试和完善,官方正式发布第一个RC版本,该版本功能趋于稳定。 ThinkPHP5.0版本是一个颠覆和重构版本,基于PHP5.4设计(支持PHP7),采用全新的架构思想,引入了很多的PHP新特性,优化了核心,减少了依赖,实现了真正的惰性加载,主要功能特性如下:
[ 底层架构 ]
真正的惰性加载
核心类库组件化
完美路由设计
框架引导文件
采用Traits扩展
API友好
文件命名规范调整
Composer自动加载支持
Console模式
[ 路由 ]
动态注册路由规则
支持路由到任意类的方法
域名绑定
资源路由支持
自定义路由检测方法
路由前后置行为
路由分组
变量规则(包括全局和局部)
闭包支持
URL生成支持路由解析反转
支持路由到多层控制器
[ 调试和异常 ]
专为API开发而设计的输出、调试和异常处理
SocketLog整合实现远程浏览器插件调试
内置trace方法直接远程调试
数据库SQL性能分析支持
[ 控制器 ]
控制器类无需继承controller类
灵活的多层控制器支持
可以Traits引入高级控制器功能
控制器rest/yar/rpc/hprose/jsonrpc扩展
前置操作方法支持排除和指定操作
控制器操作方法统一return设计
[ 模型 ]
简化的核心模型
Traits引入高级模型/视图模型/关联模型
主从分布时候主数据库读操作支持
改进的join方法和order方法
[ 视图 ]
视图解析驱动设计(模板引擎)
所有方法不再直接输出而是返回交由系统统一输出处理
动态切换模板主题
动态切换模板引擎
[ 数据库 ]
完全基于PDO实现
简化的数据库驱动设计
SQL性能监控(需要开启数据库调试模式)
[ 其他方面 ]
目录和MVC文件自动生成支持
I函数默认添加变量修饰符为/s
一个行为类里面支持为多个标签位定义不同的方法
[ 下载地址 ]
官网: http://www.thinkphp.cn/down/703.html
GIT: https://github.com/top-think/think
[ 开发手册 ]
http://www.kancloud.cn/thinkphp/thinkphp5-guide
尚未完善文档,请见谅!
由于ThinkPHP5设计之初并未考虑兼容旧版本升级,因此如果从3.2版本升级将会有不少的问题需要注意,在正式版发布之前官方会尽量给出一份升级指南文档。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
