Home  >  Article  >  Backend Development  >  Is it necessary to write a php framework by myself?

Is it necessary to write a php framework by myself?

WBOY
WBOYOriginal
2016-09-26 08:40:161039browse

I have been working in PHP for several years, and have used TP, CI, and YII. I am wondering if I should write my own framework, which is smaller and more suitable. But maybe it’s not as good as others’, and reinventing the wheel seems like a waste of time, so I’d like to ask the master, is it necessary to write it myself?

Reply content:

I have been working in PHP for several years, and have used TP, CI, and YII. I am wondering if I should write my own framework, which is smaller and more suitable. But maybe it’s not as good as others’, and reinventing the wheel seems like a waste of time, so I’d like to ask the master, is it necessary to write it myself?

I am not a master, let me tell you my thoughts :)
For learning purposes, it is good to try to write a framework yourself. It is very helpful for understanding the differences between PHP frameworks, routing parsing exception handling, etc. "Some things have to be tried by yourself before you know"
If you just want to write a framework for later use, it feels really unnecessary. Time and energy are limited, and now the open source frameworks are very powerful, plus composer's extended management It's very convenient to get up. You might as well use this time to learn more about other things

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:mysql-php get dataNext article:mysql-php get data