The PHP team chose thinkphp and symfony2. I disagree with the technical director. Would you please give me some pertinent comments? Thank you-php Tutorial

Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply content: Do not insult symfony2! It is not something of the times.
Paralyzing, suffering from thinkphp, the old project is really disgusting. I once faced this problem and tried to promote Symfony2 in the company. my situation was similar to that of your technical director, I am familiar with Symfony2 and THINKPHP, and the team members are familiar with THINKPHP (I have to say that TP is simple and can be quickly used to anyone who understands PHP ), met the resistance of the team, but not big.


First, I want to change the misunderstanding of the team members on Symfony, so I quickly set up a Demo, includes user management, oau2client, oau2server, Restful Api, ApiDoc, SonataAdmin background, FOSCACHE + varnish, and so on (these functions are required for our business ), then let them evaluate the workload of using THINKPHP to build this function. Because they are all made using open-source Bundle, with the addition of cache, the function and performance are no problem, and the building speed is very fast. It also demonstrates the convenience of Symfony2 CRUD and the flexibility of function modification. In this way, most team members are interested in Symfony.

Then, train the team to explain the characteristics of Symfony, such as dependency injection and service containers. The team's interest in Symfony has been improved.

However, the problem arises. I want the team members to take a look at this Demo and see the documents on Symfony. Team members began to encounter various setbacks.

1) Symfony is not very friendly to the windows environment, and composer is very slow to connect both domestic and foreign sources;
2) Symfony Chinese documents are extremely scarce and it is difficult for team members to read English documents;
3) the Symfony code is too complex and hard to understand. For example, they don't understand why they need to do so much work for an ajax request; they need to write so much code to customize a form;


Then, at the time of soliciting comments, the general comments were not to switch to Symfony, or they liked THINKPHP's simplicity and rudeness.


Finally, a compromise method is used. The framework still uses THINKPHP, and the dependency injection function is introduced to implement some of the above useful functions in the form of service. For example, replace the built-in Log function with monolog, so that different records can be made based on different Log levels. configure the swiftmailer service to send emails and increase flexibility.


--------------------

Symfony is good, but it is difficult for small teams to recruit high-level Symfony programmers (or small teams to recruit high-level PHP programmers ). First of all, I agree with your courage to put forward your own ideas.
However:
You need to know that any framework can complete the above functions.
Second, you need to understand that sometimes there may be N solutions to do one thing in the team, but no matter which solution you choose
You must have a person to choose and take charge of it. he is the person in charge. if something goes wrong, you can raise your opinion. but you have no right to decide. you can resign and refuse, however, a person must make a choice for the team, even if his choice is wrong, or the project cannot be carried out.Why should we use drupal? your consideration is unreasonable. However, rapid development and later scalability need to be considered comprehensively. in the future, you will find that TP is not a good choice, in particular, your project requires long-term iterative maintenance. From what you 've described, Laravel 5.1 LTS is more suitable and easy to use. You can advise, but the final decision is up to your boss. In fact, there is no absolute right or wrong choice. However, it is not good to be too single technically. Symfony has a high development cost and a high maintenance cost. In addition, in my own experience, the Symfony framework is too heavy, causing a high load on the server and slow response speed,
ZF2, good, but bloated.
Laravel is currently available in version 5.0. I personally think it is sufficient for large projects. Three projects have been developed with version 4. * and 4th projects have been developed with it. Comment: Awesome!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.