In an era rich in functionality Yii2, Laravel, CI and others, I suddenly decided to write my own framework (microframmvork) and not for fun, but for the development of a specific project (already closed). This is not an advertisement of my framework, but a small essay, so inspired yesterday.
I worked in a company that sells auto parts at retail and the idea arose to create a service like zapradar.ru. Before that, I was familiar with only one framework, Codeigniter 2. The project decided to do it in PHP 7. There was no great programming experience. I began to study the documentation of Yii, Codeigniter 3. Both frameworks are installed via the console with a bunch of additional modules, dependencies, etc. Yii2 seemed to me uncomfortable at all (maybe due to lack of experience). So I decided to write my microframe and create a project on it. I will give a link to it at the end of the article.
Later, with the help of this tool, I created a few more sites with non-standard functionality.
I have to implement another complex project (on my own or in collaboration with another more experienced developer). And I decided that my framework is insufficient. Therefore, I began to study the documentation and capabilities of others. First of all, I wrote a short TZ for my project. Tried to do some things on Yii2, Laravel. I did not like the first one because of its redundancy and many dependencies; the second one did not like it. And yet I came to the conclusion that, most likely, I will build on my framework (but I choose between it and Laravel).
I will explain why this turned out to be necessary for me. The idea of using a third-party tool is good because there are already a lot of libraries with whole commands behind it. Choosing Laravel, Yii2, CI, etc. you essentially hired a whole team that has already done a lot for your project. But a small tool, created by hand, will allow you to implement your architecture and standards. The question is only expediency. In addition, there are not so many libraries in these frameworks that I will use in my project as it is. Almost everything will have to write from scratch. And it is precisely the last moment that inclines me to the framework already written to another unknown PHP.
Why did I write this article? Habr.com is an excellent source of knowledge, ideas, a platform for sharing experiences. Perhaps this material will cause a discussion and there I will see something new that can completely change my views. For example, my last article was given a very valuable comment to me.
Here is a link to GITHUB . By the way, who cares, share libraries. Suddenly it will be useful to someone (except me).
Source: https://habr.com/ru/post/450242/
All Articles