thinkphp V5.0 Official release

Source: Internet
Author: User
Tags format definition mongodb support

ThinkPHP5.0 version is a subversion and refactoring version, the official team in October, poured a lot of time and effort, with new architectural ideas, introduced more new PHP features, optimized the core, reduced reliance, realized the real lazy load, support composer, and for the development of the API to do a lot of optimization, including road The modules, such as logs, exceptions, models, databases, template engines, and validations, have been refactored and are not suitable for upgrading existing 3.2 projects, Please consider commercial project upgrades carefully, but are definitely the first choice for new projects (either Web or API development).

thinkphp v5.0--high-performance framework designed for API Development



[properties]

--------------------------------------------------------------
specification : follow PSR-2, PSR-4 specification, composer and unit test support;
Strict : exceptionally rigorous error detection and security mechanism, detailed log information, for your development escort;
Flexible : reduce core dependencies, extend more flexible and convenient, support command line instruction extension;
api-friendly : excellent performance and rest support, remote debugging, better support API development;
efficient : lazy loading, and caching mechanisms for routing, configuration, and automatic loading;
ORM : refactoring databases, models and associations, MongoDB support;
---------------- ----------------------------------------------

Support ThinkPHP5, please go to  Github  give us a ' star ' ^_^

As opposed to the RC4 version, the update is as follows:

[request and route]

the Request object supports dynamic binding properties
The URL that defines the routing rule has no access to the original address
Improved routing rule storage structure
Routing grouping enhancements to support nested and virtual groupings
Efficient inverse solution for routing URLs
Improve the Request object Param method Get priority
Route Add Name Method set and get route identity
Adding Miss and Auto routing rules
The route class adds auto method support to register a route that automatically resolves URLs
Routing rules support Model binding
Route variables uniformly using the Param method to get
Routing rule identity feature and automatic identification
Add generate route cache directive Optimize:route
Request object Add route method to get the route variable separately
The request Object's param get post put request delete server cookie The first parameter of the Env method is passed in false to indicate that getting the raw data is not filtered
Improved automatic route identity generation support for different routing rules pointing to the same route identity, improved URL automatically generates routing identity support
Improved initialization of the request Class Filter property
Improving the Isajax and Ispjax methods of the request class
Request Class Add Token method
Routing profiles support multiple configurations using Route_config_file configuration parameters
Domain binding supports HTTPS detection
Improved domain name binding supports binding modules and other routing rules that support binding to array definitions, canceling domain binding to grouping
Routing rules increase patch request type support
Add route_complete_match configuration Parameter set global routing rule definition whether a full match can be overridden by the parameter complete_match of the routing rule
Improved routing suffix parameter recognition takes precedence over system pseudo-static suffix parameters
The URL class adds the root method to specify the current root address (excluding domain names)
Improved URL generation support for optional parameters

[database]

Query condition automatic parameter binding
Improved paging method supports parameter binding
The cache method of the query class increases the cached label parameter
The update and Delete methods of the query class support calling the cache method to automatically erase the cached method that specifies the key for caching mate query methods with
Improved deferred write method for query class
The column and value methods of the query class support Fetchsql
Improved Date Query method
Improved stored procedure method exec support
Improvement of Getlastinsid method for connection class
Log connection logs for the database (connection time and Dsn)
To improve the return result set of the Select method of the query class
Connection class Adding Getnumrows method
The database transaction method cancels the return value
Improving the chunk method of the query class to obtain the primary key
Improvements to the builder method of the query class when the Database-driven type uses the full namespace

[model]

Add Soft Delete Feature
Correlation model and pre-loading improvements
Associated preload query closures support more coherent operations
Improved Savell method support for updates and validation
Association definition unified Return relation class
The has and Haswhere methods of the model class support the Join type
The data method of the model class empties the original data when it is bulk-assigned
The Get method of the model class automatically updates the cache when the third argument passes in true
The model class adds read-only field Support
Model class Increase Useglobalscope method setting whether global query scope is enabled
The base method of the model class is changed to statically define a global multiple call valid
The model class supports setting primary keys, field information, and field types, and does not rely on automatic acquisition to improve performance
The data method of the model class supports modifiers
Improved relation class support for Non-numeric type primary keys
Improved One-to-many deletions for the relation class
Fixed a one-to-many association pre-load query for the relation class

[log and cache]

Support for log type separation storage
Logging allows setting the logging level
Add Cache label function
The cache class adds a pull method to get and delete
The cache helper function adds the tag parameter
Simplifies log information and hides database passwords
Add cache/session Redis-driven Library selection logic;
The configuration parameters of the memcached driver support the option parameter
Debug mode The following log records add the header and param parameter records of the page
Memcached Cache driver Add Connection account password parameters
Cache support settings Complex type supports configuring multiple caches and switching with store
Cache class Add Tag method for cache label settings The Clear method supports clearing data for a cache label
File type log driver supports setting individual file records for different log levels
Improved storage file name naming specification for file caches and logs
Cache Classes Add the INC and Dec methods to provide self-increment and decrement operations for numeric data
The cache class adds the have method to the Get method to support default values

[other]

view class support set template engine parameters
Increase form token generation and validation
Add Chinese validation rules
Add image and file-related validation rules
The redirect Response object supports the With method implied parameters
improved auto-initialization of Session class
The session class adds a pull method to get and delete the
Add ENV class to get environment variables
Request Class get/post/ The Param method is still valid after the change assignment of put and so on
improve jump skip address support Url::build Parse
Optimize hook class
Apply debug mode and page trace support environment variable settings
Config helper function supports config ('? Name ') usage
Bind module using Bind_module constant
Portal File Auto-bind module function
Improved validation exception class error message and template output, support for batch validation error message thrown
Perfect console Add output Some common methods
Add token helper function used to quickly display tokens on a page
Add halt method for variable debugging and interrupt output
improved number validation rules for validate classes and integer separation
Optimize:autoload increased scanning of extend extended directory
Improved Boolean validation rules for validate classes support form data
Improved cookie helper function supports determining if a cookie value exists
Improved abort helper function to support throwing httpresponseexception exceptions
improve handling of upload errors by the file class
improve the return object of the file class Move method increase the upload form information and increase the way to get the file hash value
Improved the return object of the Move method of the file class to return the file object instance
Add clear and optimize:config directives
to improve image file type validation for the file class and validate class
The operation method of the controller supports the injection of object instances other than request
Request class Param (true) supports getting data with files
Input helper function The first parameter increases the default
Validate class adds an image validation rule and improved Max min length supports multiple data types
JSON output throws an exception after data encoding fails

[adjustment]

Revoke route map (static Route) define
Cancel Url_deny_suffix configuration change the Deny_ext parameter setting of the route
The model Save method returns the value changed to the number of records affected, cancels the GetID parameter
Request Object Controller method returns the Hump controller name
Controller predecessor action method does not exist then throws an exception
Loader class db method add name Identity parameter The
DB helper function adds a third parameter to specify the connection identity
Sqlsrv driver does not convert the data table field to lowercase by default
Remove SAE driver to expansion pack
Oracle Drive Remove core package
Firebird Drive Remove Core Pack
To cancel an alias definition file alias.php
When the configuration parameter is read cancel environment variables when you want to read environment variables, use the Env class
environment variable definition file to change to. env from the original PHP array to the INI format definition (support array Mode)
The load order of the state configuration and the extended configuration is adjusted so that the parameters of the extended configuration can be changed in the status profile
Cancel domain binding to routing grouping function
The success and error method URL parameters of the controller class support passing in an empty string, then do not do any processing
The Controller's error Success result Redirect method does not need to use return
to create a directory with permissions modified to 0644

[document]

5.0 Full Development Manuals and 5.0 Quick Start

[ ]

Official Website: http://www.thinkphp.cn/down/845.html
Github:https://github.com/top-think/think.git (main Maintenance Warehouse official Core Team)
Composer:composer Create-project Topthink/think tp5--prefer-dist

[expansion pack]

The following is an expansion pack for ThinkPHP5 that needs to be installed using composer
Application Unit Test: Https://github.com/top-think/think-testing.git
Verification Code: Https://github.com/top-think/think-captcha.git
Queue: Https://github.com/top-think/think-queue.git
MongoDB support: Https://github.com/top-think/think-mongo.git
Angular template engine: https://github.com/top-think/think-angular.git
Assistant Library: Https://github.com/top-think/think-helper.git
Database Migration Tool: Https://github.com/top-think/think-migration.git

thinkphp V5.0 Official release

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.