Why do we need to build a PHP framework by ourself? Maybe most of the people will say "There have so many PHP frameworks be provided, but we still made a wheel?". My point is "Making a wheel is not our purpose, we will get a few of knowledge when making a wheel which is our real purpose". Defined a entrance file that provide a uniform file for user visit, which hide the complex logic like the enterprise service bus. Register a function by used set_error_handler to handle error, but it can't handle the following error, E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING and the E_STRICT produced by the file which called set_error_handler function. So, we need use register_shutdown_function and error_get_last to handle this finally error which set_error_handler can't handle. When the framework running, we can handle the error by ourself, such as, give a friendly error messge for client.
Features
- Config Handle Module
- Request & Response Module
- Micro monolith router
- Use Vue For View
- Service Container
- Nosql Support