I have used laravel since ver 4.2, and I am not jut saying I know laravel pretty well, I am number 20 on the leader board.
So laravel vs cakephp is the question.
I think they are both php frameworks and I like any of these.
I find laravel easier to customize. Taylor made it very flexible.
Cakephp is good except for one thing, they made the querybuilder return nothing if a zero is stored in a tinyint. Laravel returns
What is actually stored.
Yii2 is similar, but a little harder to “turn off things you don’t use”.
And even in laravel if a query gets complex, or I have to start using the raw expression, I instead of using eloquent use the native pdo instance getPdo().
I even did a guide on laracast https://laracasts.com/discuss/channels/guides/getpdo-usage
So even if cake or laravel is missing something you need, you as a developer can either program it in or find a package.
Bottom line cakephp, laravel, yii2, don’t matter. All php frameworks, all kind of similar.
Also you stated
This is something that has been on my mind for a while, but I never really had the courage to ask it on a forum that is dedicated to one of the frameworks…
For one long term site I had, that did not need special things like:
It was mainly crud operations. I heavily modified an older framework SMVC, made it php 7.1 compatible and used it.
You will find that large enterprise such as
- Fedex
- JB Hunt
- CH Robinson
- Landstar
- Etc
Aren’t using any “off the shelf” framework, they have highly customized specialized code.
Of course most large enterprise use java technology. I once worked at a medium sized trucking co and I used servlets, ejb’s, and jsp. I was looking at hibernate, but never used it.
But php is fine for up to a larger medium sized site. Too big look into load balancing.
By the way, hibernate and doctrine orm are similar, real entity mappers.
Cake, laravel, yii2 orm’s just active record. Fine for smaller databases, but not so great for larger.
As an example, say you eager loaded relations, where you had a foreach in a foreach.
Ok great, my orm is great, My little post with comments is so cute.
But
Now do one where the inner foreach has tens of thousands of records.
Enough said on that.
But it all gets back to just retrieving the data needed. Normally a huge resultset like that is for monthly A/R and A/P reports. Complex reports is another ball game.