ThinkPHP5.0.0RC1 release-designed for API development

Source: Internet
Author: User
ThinkPHP5.0.0RC1 is released. it is designed for API development and has been tested and improved for a period of time. The first RC version is officially released, and its functions tend to be stable. ThinkPHP5.0 is a revolutionary and restructured version. it is designed based on PHP5.4 (supports PHP7) and adopts a brand new architecture. it introduces many new PHP features, optimizes the core, and reduces dependencies, implements real inert loading. The main features are as follows:

[Underlying architecture]

Real inert loading

Componentization of core class libraries

Perfect route design

Framework boot file

Use Traits extension

API-friendly

Adjust file naming rules

Support for automatic Composer loading

Console mode

[ROUTING]

Dynamically register routing rules

Supports routing to any class

Domain name binding

Resource routing support

Custom Route detection method

Pre-and post-route behavior

Route Group

Variable rules (including global and local)

Closure support

URL generation supports reverse routing resolution

Supports routing to multi-layer controllers

[Debugging and exceptions]

Output, debugging, and exception handling designed for API development

SocketLog integration for remote browser plug-in debugging

Direct remote debugging using the built-in trace method

Database SQL performance analysis support

[Controller]

The controller class does not need to inherit the controller class

Flexible multi-layer controller support

You can use Traits to introduce advanced controller functions.

Controller rest/yar/rpc/hprose/jsonrpc extension

Pre-operation methods support exclusion and specified operations

Unified return design for controller operation methods

[Model]

Simplified core model

Traits introduces advanced models, view models, and associated models

Read operations supported by the primary database during master-slave distribution

Improved join and order methods

[View]

View parsing-driven design (Template engine)

All methods are not output directly, but returned to the system for unified output.

Dynamically switch the template topic

Dynamically switch the template engine

[Database]

Fully implemented based on PDO

Simplified database driver design

SQL performance monitoring (database debugging mode must be enabled)

[Other aspects]

Support for automatic directory and MVC file generation

By default, the variable modifier is/s added to the I function.

A behavior class supports defining different methods for multiple tag spaces

[]

Official website: http://www.thinkphp1.cn/down/703.html

GIT: https://github.com/top-think/think

[Development Manual]

Http://www.kancloud.cn/thinkphp/thinkphp5-guide

Documents not yet completed. please forgive me!

Because ThinkPHP5 was not designed to be compatible with the old version, if you upgrade from version 3.2, there will be a lot of issues to note. before the official version is released, the official version will try to provide a guide for the upgrade.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.