What is the best PHP framework? Why?

Source: Internet
Author: User

Reply content:

-------------------Updated on: 2014. ------------------

Laravel China was ready Laravel Chinese document , welcome to initiate issue submission of flaws and recommendations--Laravel China GitHub

-------------------Updated on: 2014. .------------------

Phphub-php & Laravel's Chinese community A clean PHP Chinese community has been my dream, these days to write a, today is officially on-line, although there are a lot of functions need to optimize, welcome everyone to join, give me a bit of power, haha.

With Laravel4, the code is also open source Summerblue/phphub GitHub

-------------------Updated on: 2014. Geneva------------------
A more convincing data:

Laravel is the most famous PHP project on Github, with 8,627 star, leading second Symfony and third CI near 1000 star, see here--Most star PHP project on Gi Thub

CI and symfony to reach today's influence, and Laravel's first commit occurred in June 09, 2011, see:



----------------First published---------------------

Laravel4, the entire PHP community is crazy about the framework.

Laravel4 's best practice is a positive framework that is aligned with the Bull B Rails and draws on a number of successful elements that have been demonstrated in the mature framework:

    1. RESTful Routing;
    2. Design exquisite Blade template engine, light, without losing flexibility;
    3. Reasonable ORM model layer, eloquent ORM, draw on the success of Rails;
    4. Migration database version system and seeding;
    5. Using the Package Manager Composer, opened a door for spring;
    6. Emphasis on test-driven, the entire core has undergone complete testing, high-quality code;
    7. Command line driver, can be highly automated (pay attention to efficiency, code generator ...), for reference with rails;
    8. Reasonable use of the new version of PHP features, so that writing code more fun, keep up with the pace of the Times;
    9. Positive community, this is very important, everyone is learning, creating a good tool, speed up development, improve programming efficiency, the speed of receiving new knowledge is also very fast.
    10. Support for PHP normalization php-fig-php Framework Interop Group

Another: Here are a few links for reference

Best PHP frameworks for 2014
Why Laravel are taking the PHP Community by Storm
The future of web development is Laravel

2014 I have a wish that the PHP community disunity the situation into the past, Laravel, Composer, Php-fig is the future, rapid development, adherence to norms, DRY, build a united community, smart, rational community.

There is no more suitable time than now, friends, put me up, let PHP new and veteran know in the PHP community, there is such a good thing exists, also counted as a contribution to the PHP community. May God is with you.
-------------------------------------END-------------------------------------The Laravel, followed by yii,laravel Design ideas and support in engineering practice, more than thinkphp for several generations. If the original PHP is a musket, thinkphp is a rifle, Lavavel is a submachine gun. If you want to hunt, bring a rifle is enough, but to go to war, you have to be more automated submachine guns.

There are many advantages:
    • Composer Doing package management
    • Standard Autoload implementation that allows ' include xxx.php ' to be a history
    • Various Dependency Injection
    • ORM Support
    • Handy command line and scaffolding
    • Rich documentation and an active community
Even if there are so many benefits, but also chasing a few years ago ROR level, still in use thinkphp people, but not bothered to touch new knowledge.

Said thinkphp suitable for people to use, since the black time do not bring others, thank you. After the PHP5.3, Php-fig and composer to the PHP community has brought great changes, if a framework is not used to composer, or invent everything here, it is really a bit outdated.
With the support of composer, it is not difficult to achieve a framework like saving a computer, but it is difficult to make a "good" framework. The project used the framework of 6 (Zf1,sf2,ci,yii,laravel4,silex), the understanding of the number of the most outstanding in the framework of the genus Laravel4, explained as follows:
    1. Direct. A variety of common functions are implemented by some simple service, through the facade access, many common problems are simple and elegant processing, interface design is very intimate, most of the use of scenes for you to consider. Because the function is simple and direct, the document does not need to be put down, the document on the official website is not too much, look at the complete can begin to do.
    2. Open. With composer, excellent code can be very convenient to introduce projects, laravel framework of the Boris,whoops,monolog,swiftmailer and symfony the following batch of base class library, rather than have to write their own code to be assured.
    3. Simple. Not only is it simple to use, but the implementation of the framework itself is not as heavy as the other "enterprise" frameworks, where each function is rarely coupled and assembled by a dependency injection container. There are not so many levels of abstraction to dig inside the framework from the source code.

In addition, PHP Novice or PHP from the right to learn, the new era of PHP has a correct understanding, CI suitable is still in use There is no "best" PHP framework, only the truly responsible answers for yourself and your project are made by yourself, try, compare, and then decide. If you are a novice I suggest you learn CI, if you have been long and afraid of trouble, I suggest you look at Yii, if you improve development efficiency and willing to contact with new toys, I recommend you see LARAVEL4CI.
How you want a better framework, PHP can not meet you, use Rails bar. Not the answer to the gold oil, but really not the best, only the most suitable.
The framework is divided into four kinds:
1. [Take the document layer out first is a big step] of the minimalist system: SLIM/KISSMVC = ALL the same
2. [Bring all the wheels to the big grandfather] functional full-scale: Yii, CI, Cake and other =>yii better
3. [Not a bit higher?] Expansion of the installation: Laravel, ZF = Laravel better
4. [The most realistic] C-series: YAF, Phalcon = Phalcon richer than everyone else, on the powerful recommended yii.
    • Yii Framework is the first choice, the document is complete, the object-oriented is thorough, performance is superb. Instantiation of the model after a lot of components can be used, the only thing is not like the query out of the data operations are object-style, I still prefer the array method, had to use Chtml::listdata () conversion. Another zii Wigdet is very good for improving the speed of development.
    • In fact, thinkphp 3 is really good, and easy to use, the document is more suitable for the Chinese people. I personally prefer the db portion of thinkphp and the route rest section.
    • The Zend Framework is more like a super-large class library, although the speed is a bit slow, many frameworks are left with the Zend class interface, its value can be seen
    • CodeIgniter did not look carefully, dare not to say, Chinese support is relatively small, many people use his branch version, Kohana, interested can see.
    • Finally say speedphp, this framework design thought I like, simple and efficient, has the SAE version, expansion convenient, suitable for transformation, speed is also good, I develop social games like to use this framework to transform.
With all that said, the framework is best suited to your business. It's hard to say which is best.

The benefits of using the framework are:
1. Efficient development using the standard program architecture and practical components provided by the framework
2. Use of well-framed documents to facilitate new team members training and collaborative development, reduce communication costs

To achieve the above purposes, is a good framework. Because the mainstream framework is the MVC structure + some practical components, class library, in addition to the database processing this piece, the other places little difference.

Personally recommended Zend Framework and Yii. The best PHP Framework is of course spring, hehe.
  • 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.