D
D
Dmitry Los2013-11-18 16:26:58
PHP
Dmitry Los, 2013-11-18 16:26:58

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

5 answer(s)
M
MastaEx, 2013-11-18
@DemonStore

For an understanding of architectural flexibility, I would advise reading a series of articles from Fabien Potencier, the author of Symfony.

M
Masterme, 2013-11-18
@Masterme

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

A
Alex Gray, 2013-11-18
@wordwild

Yii is, to begin with, a horror in the dark.
It's easier to start with microframeworks.

N
Nikolay, 2016-09-04
@zzzmaikzzz

getjump.me/en-php-the-right-way

O
odionys, 2016-11-26
@odionys

This is not an advertisement, asking the same question, I searched a lot, came across a video. People adequately and without - then come up with it yourself, explains the working vario. Link to youtube lessons

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question