News for hackers. Stuff that matters.
Re:Laravel 5 released by xoe26 on Wednesday February 04, 2015 @10:06AM (#8997141)
Can you give an example of a well designed PHP codebase?

Are any of the other frameworks (Symfony2, Zend, etc..) better?

Re:Laravel 5 released by snomad on Wednesday February 04, 2015 @10:11AM (#8997166)
Not a framework per se, but several independent packages, http://thephpleague.com/ has some well written and nice code.
Re:Laravel 5 released by madawan on Wednesday February 04, 2015 @10:12AM (#8997172)
When I tried SF2 I found it to be a terrible, Java-like, pile of abstractions. This might work for some people, but if you prefer thinking about business logic (as opposed to "where do I extend this IoC dependency container so that it can find my ControllerFactory), it's not for you. It left me bitter.

Yii is supposed to be nicer, I heard from colleagues, but I left PHP programming the moment I saw the opportunity so I can't vouch for that.

Re:Laravel 5 released by tomcorrigan on Wednesday February 04, 2015 @10:25AM (#8997290)
Extending the IoC container?? A ControllerFactory?? You never do anything like that in Symfony. The thing I appreciate most about Symfony2 is how it enforces good design patterns.
Re:Laravel 5 released by _broody on Wednesday February 04, 2015 @11:28AM (#8997724)
One might argue that the SOLID principles applied in Symphony and inherited by Laravel are in fact anti-patterns which only serve to add massive cognitive overhead. They've wrecked countless Java projects over the years and are now going to do PHP the same favor.

There's even less reason for a scripting language with a GIL to be saddled with this level of complexity, than there is for Java.

Re:Laravel 5 released by Gigablah on Wednesday February 04, 2015 @11:58AM (#8997934)
Much of the complexity in Symfony comes from its "dependency injection" component (a misnomer, really) and the inclusion of annotation magic in the standard framework distribution.

These days, I'd rather use the basic components (e.g. Symfony's HttpFoundation library) with something like league/container (formerly orno/di) and a simple routing library like nikic/FastRoute.

Re:Laravel 5 released by porker on Wednesday February 04, 2015 @03:56PM (#8999701)
> They've wrecked countless Java projects over the years and are now going to do PHP the same favor.

Oooh do enlighten. I made an argument when Symfony2 first came out that PHP isn't Java, and now I've been brainwashed to think the Symfony community is right.

Very refreshing to here an alternative point of view :)

Re:Laravel 5 released by fmosca on Wednesday February 04, 2015 @01:51PM (#8998788)
Can you elaborate on "the SOLID principles [...] are in fact anti-patterns"? I don't see this point of view exposed often, can you point me to some resources in this regard?
Re:Laravel 5 released by jcshep on Wednesday February 04, 2015 @10:46AM (#8997449)
I really enjoy using Yii. It's not perfect, but it seems underrated to me.
Re:Laravel 5 released by debaserab2 on Wednesday February 04, 2015 @11:44AM (#8997822)
Take a look at phabricator's source code, which was originally developed in house at facebook but is currently open sourced. It's not using any of the big MVC frameworks, but it's very well written (despite using PHP 5.2 compatible only syntax) and I think a good example of a well designed PHP codebase.
Re:Laravel 5 released by dscrd on Wednesday February 04, 2015 @10:12AM (#8997169)
No, they also suffer from the pattern misuse pattern and are also slow as hell.
Re:Laravel 5 released by bojanz on Wednesday February 04, 2015 @10:21AM (#8997253)
It would benefit the whole community if you documented your complaints (and suggestions for improvements) in a blog post we can all read & comment on.
Re:Laravel 5 released by porker on Wednesday February 04, 2015 @03:59PM (#8999737)
Though the Symfony2 community hasn't been open to criticism and suggestions for improvement.

And eventually, when they've taken some of the original criticisms on-board (at v2.6) [0], they themselves get shot down by parts of the community for spoiling the architecture.

0: http://symfony.com/doc/current/best_practices/index.html