When comparing CakePHP vs Rocket, the Slant community recommends Rocket for most people. In the question“What are the best backend web frameworks?” Rocket is ranked 14th while CakePHP is ranked 50th. The most important reason people chose Rocket is:
Rocket makes extensive use of Rust's code generation tools to provide a clean API.
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 Easy To Use
Rocket makes extensive use of Rust's code generation tools to provide a clean API.
Pro Streams
Rocket streams all incoming and outgoing data, so size isn't a concern.
Pro Cookies
View, add, or remove cookies, with or without encryption, without hassle.
Pro Testing Library
Unit test your applications with ease using the built-in testing library.
Pro Extensible
Easily create your own primitives that any Rocket application can use.
Pro Templating
Rocket makes rendering templates a breeze with built-in templating support.
Pro Query Strings
Handling query strings and parameters is type-safe and easy in Rocket.
Pro Type Safe
From request to response Rocket ensures that your types mean something.
Pro Boilerplate Free
Spend your time writing code that really matters, and let Rocket generate the rest.
Pro Config Environments
Configure your application your way for development, staging, and production.
Cons
Con Slow
Because of legacy code, old concepts and prioritizing development speed over everything else, CakePHP is bloated and slow.
Con Abandoned
Con Nightly
Uses only nightly versions of Rust.