Answer the question
In order to leave comments, you need to log in
What to read before writing your own framework in php?
Good afternoon! Please advise some materials (websites, books, etc.) on creating a framework in php. Familiar with syntax and basic concepts. It is necessary in order to understand the basic patterns, to more widely know the functionality of php. I don't know where to start and in what direction to move.
Answer the question
In order to leave comments, you need to log in
For an understanding of architectural flexibility, I would advise reading a series of articles from Fabien Potencier, the author of Symfony.
All puff-frameworks are shit. To better understand what a web framework should be like, you need to look at frameworks in other languages, such as RoR (although it's not perfect, of course). There, people thought in a completely different way and were not constrained by the puff paradigm. Django is also good, reflects the essence of the framework's response to a request.
To write a framework, you need to understand what tasks it solves, which means that these tasks should arise in your work activity in a fairly relevant form, and not all at once, but separately. So that you understand which template engine is better and why, which data model is better and why, which event handler is better and why, etc.
You need to start with command line processing. Your framework should be able to work with data, tables, network, be able to handle errors (for example, a fallen off database) from the command line. Then, when you form an internal API, you can hang routing and views.
Well, we should not forget that the first option will still go to /dev/null
Yii is, to begin with, a horror in the dark.
It's easier to start with microframeworks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question