Preface
ThinkPHP is a free, open source, fast and simple object-oriented lightweight PHP development framework, which was born for agile WEB application development and simplified enterprise application development. ThinkPHP has been adhering to the simple and practical design principle since its inception. While maintaining excellent performance and minimal code, it pays more attention to ease of use. Following the Apache2
release of an open source license agreement means that you can use ThinkPHP for free, and even allow you to open source or publish/sell commercial products based on ThinkPHP.
ThinkPHP further optimizes and improves the underlying architecture based on the
6.0
two principles of streamlining the core and unified usage5.1
, and makes it more standardized. Due to the introduction of some new features, the ThinkPHP6.0
operating environment requires seamless upgradesPHP7.1+
that are not supported5.1
(the official upgrade guide is given for the upgrade reference of the project).
Main new features
- Use
PHP7
strong typing (strict mode) - Support more
PSR
specifications - Multi-application support
ORM
Component independent- Improved middleware mechanism
- More powerful and easy-to-use queries
- Brand new event system
- Support container
invoke
callback - Template engine component independent
- Internal function middleware
- SESSION mechanism improvement
- Cache and log support multiple channels
- Import
Filesystem
components - Yes
Swoole
and coroutine support improvement - More friendly to IDE
- Unify and streamline mass usage
This series of articles is mainly aimed at scenarios that are used more in the project, providing better solutions, better code architecture, coding methods, exception interception processing, etc., for the use of third-party SDKs and decoupling from business logic codes .
table of Contents
- ThinkPHP6 project basic operations (1. Environment construction and ThinkPHP6 installation)
- ThinkPHP6 project basic operation (2.Nginx configuration virtual domain name and simplified access path)
- ThinkPHP6 project basic operations (3. Controller obtains request parameters)
- ThinkPHP6 project basic operations (4. Intercept invalid request controller or method does not exist)
- ThinkPHP6 project basic operations (5. Package API data format and unified management of business status codes)
- ThinkPHP6 project basic operation (6. Database Db operation)
- ThinkPHP6 project basic operation (7. Model)
- ThinkPHP6 project basic operations (8. Multi-application mode)
- ThinkPHP6 project basic operations (9. Architecture layering)
- ThinkPHP6 project basic operations (10. Unpredictable internal exception handling)
- ThinkPHP6 project basic operation (11. The actual part of the deployment of the background static page template and background login page)
- ThinkPHP6 project basic operation (12. Verification code for actual combat part)
- ThinkPHP6 project basic operations (13. Custom exception handling summary error page & API error in some actual combat projects)
- ThinkPHP6 project basic operation (14. The actual part of the middleware processing login process)
- ThinkPHP6 project basic operations (15. Actual combat part of Alibaba Cloud SMS redis)
- ThinkPHP6 project basic operations (16. actual combat part of redis+token login)
- ThinkPHP6 project basic operations (17. Filesystem file upload for actual combat part)
- ThinkPHP6 project basic operations (18. Actual combat part of the form token Token anti-CSRF)
- ThinkPHP6 project basic operations (19. Actual part of Mysql model transaction operations)
- ThinkPHP6 project basic operation (20. Summary of the return value of the actual part of the database operation)
未完待续。。。