My-PHP-Framework
A lightweight PHP MVC framework, first refer to the ThinkPHP5 framework to simply implement each class (some classes are implemented by themselves), and then gradually improve it to comply with the PSR specifications as much as possible.
The purpose of writing this framework
- Strengthen your PHP skills
- It is easier to study the source code of other PHP frameworks, and I believe that I will gain more through comparison.
- I hope to use this framework for my own small project in the future
refer to
- ThinkPHP 5 source code
- thinkphp 5.0 source code reading and learning
- Build your own PHP framework from scratch [MOOC]
Completed functions
- Config configuration class
- Request request class
- CSRF Cross-domain protection class
- Cache Cache Class
- Route routing class
- Redis singleton connection
- Session class, etc..
environment
- php7
- nginx
- composer
- redis(phpredis)
- mysql