When comparing Symfony vs FuelPHP, the Slant community recommends Symfony for most people. In the question“What are the best PHP frameworks?” Symfony is ranked 5th while FuelPHP is ranked 15th. The most important reason people chose Symfony is:
Symfony is open source and released under the MIT license.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Open Source
Symfony is open source and released under the MIT license.
Pro Easy debugging with a built-in debug toolbar
Symfony comes with a built-in toolbar that helps developers debug their applications during the development phase.
The toolbar is also extendable and new components, called panels can be added if needed to help with the debugging process.
Pro Great plugin ecosystem
One of the greatest strengths of Symfony is it's amazing and large plugin ecosystem, which comes as a result of it's large and dedicated community. Having a large number of plugins means less development time and more productivity.
Pro Highly active community
Symfony has one of the most active communities out of all the PHP frameworks. This is shown by the high number of commits made every day in the GitHub repo.
Pro Teaches you good practices
Symfony makes you be a better programmer. You have to deal with the latest object-oriented design patterns such as service-oriented architecture, dependency injection, interface abstraction, and so on.
Pro Uses YAML/XML/PHP/Annotation
Symfony makes use of XML, YAML or PHP annotations to create configurations in order to tell Doctrine on how properties of a certain class should be.
Pro Powerful event system
Symfony has a powerful built-in event system that allows you to add flexibility to applications and makes it easier to maintain the codebase down the road.
Pro Great templating engine
Uses Twig, which is a simple and easy to learn templating language that can also be used as a standalone engine, outside the framework.
Pro Uses Doctrine ORM
Symfony makes use of the Doctrine ORM to add an abstraction layer over the database in order to maintain flexibility without having unnecessary code duplication.
Pro Total flexibility
Fuel has very few restrictions on how to write code. Classes and controllers can be in any file structure, any folder can be the "modules" folder and native classes can be extended any way you want.
Pro License
FuelPHP is open source and is released under the MIT license.
Pro Out of the box HMVC structure
FuelPHP follows the HMVC pattern which makes it possible to divide the code into smaller modules.
Pro Secure
Fuel takes security very serious, and as a result, has implemented the following measures to ensure the safety of your web applications:
- Output encoding in views
- CSRF protection
- XSS filtering
- Input filtering
- SQL injection
Pro Powerful yet lightweight ORM
FuelPHP is all about being lightweight and simple, this is also demonstrated by it's built-in ORM, it's simple yet powerful. It maps a model to each table in the database, assigns fields on the table depending on the model configuration.
Cons
Con Settings
Too many configurations.
Con Very hard to install
Setting it up on webhost without a console is difficult.
Con Promotes bad development practices
Such as annotations via comments.
Con Doctrine ORM
Symfony Standard Edition, which is the most widely used distribution, comes integrated with Doctrine, the most resource hogging ORM library.
Con You need a lot of files to display a single page
For a simple hello world page you need about 5 files.
Con Small community
FuelPHP has a pretty small community compared to other alternatives. This means that there are not many resources and guides for it out there, but on the other hand, it's easier to get help from the core team of developers that are working on Fuel.