When comparing CakePHP vs FuelPHP, the Slant community recommends CakePHP for most people. In the question“What are the best PHP frameworks?” CakePHP is ranked 11th while FuelPHP is ranked 15th. The most important reason people chose CakePHP is:
Cake has a built-in ORM which is pretty easy to use and learn. Building queries can also be done very easily and fetching entire columns can be done in one or two lines of code.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Built-in ORM that's easy to use
Cake has a built-in ORM which is pretty easy to use and learn. Building queries can also be done very easily and fetching entire columns can be done in one or two lines of code.
Pro Fast development
Developing in CakePHP is very fast and flexible.
CakePHP is about fast and reliable development, it achieves this by following the convention over configuration principle as it's heavily inspired by Rails (which follows the same programming paradigm).
Convention over configuration is all about making it easier for the developer to start immediately writing code without worrying on what's going on "under the hood".
Pro Large library of helper classes
CakePHP has a large library of helper classes with features such as:
- Authorization
- AJAX
- Forms
- E-mails
- Internationalization
etc...
Pro Exhaustive list of resources to learn CakePHP
Cake's great community has thrown together an exhaustive and amazing list of resources to get started with CakePHP. It's open source and can be found on GitHub.
Pro Open Source
CakePHP open source and is licensed under the MIT license.
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 Slow
Because of legacy code, old concepts and prioritizing development speed over everything else, CakePHP is bloated and slow.
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.