Is there a book or tutorial that teaches you how to gradually optimize a pile of messy code into code that is logical, readable and reusable?

this is the case now. Simple business logic can be written, framework can also be used, composer components will also be called, equivalent to only can spell building blocks, but not building blocks, programming head and tail can see clearly, but internal
1. How to implement
2 inside "Building blocks". Why can we achieve "building blocks"
3 in this way. Is there any other way to achieve the same "building blocks"
4. What convenience the new features will bring to building "building blocks" after the language version is updated. For example, what changes the late static binding of php5.3 can bring to the coding.

5. How frameworks like laravel evolved into their current version. I have tried to read the source code and read the "Analysis of key Technologies of Laravel Framework", but it still feels like a glimpse in the tube.
6. When writing business logic, do you need to write it like a "building block"?

there are so many questions that the great god can answer a few. The main purpose is how to gradually build "building blocks" and optimize "building blocks".


"Man-Moon Myth" is worth reading


start from php alone. You can refer to the relevant PSR standards and some general guidelines.
books recommend "the way of PHP" and "Modern PHP". The latter is a paper version of the former and can be said to be content that will not be out of date for a long time.

from a technical point of view. You can install xdebug on your development environment and follow the execution of the framework to understand the implementation of some of the framework's fantastic ideas.

for example, Laravel recommends Laravel official API documents.

Menu