M
M
Mors Clamor2020-10-30 02:42:03
PHP
Mors Clamor, 2020-10-30 02:42:03

What should the Framework include?

Hello! I got acquainted with some popular frameworks (from Codeigniter 3.4 to Yii2 and Symphony), in each framework there were some not very convenient and understandable things, there were also very good practices, but I often noticed redundancy. Therefore, I want to write something of my own, first of all, probably for educational purposes. Something that would be absolutely clear to me and I could use it in development. It is clear that this is cycling, but I repeat, the goals are rather educational.

What basic concepts should I know (other than OOP), what design patterns? Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
poniyur, 2020-10-30
@66demon666

you can look at design patterns just in those frameworks that you met (either disassemble the source codes yourself, or look for people who have already done this and posted it on YouTube, I’m sure there are such people).
yii has events, magic getters/setters, Active Record, singleton likes and much more (frameworks are literally made up of patterns because they make development easier).
What should a framework include? the functionality you need from it.

N
NeylonC2, 2020-11-02
@NeylonC2

You can start with some kind of microframework to avoid redundancy. Although it all depends on the requirements for it. You can see the code of this framework here , follow the link for detailed instructions in Russian. You can study its code in one day if you are interested in the principle of operation of this type of framework. Those MVC as stated in the description.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question